You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is.js 303B

1234567891011
  1. "use strict";
  2. var isValue = require("../value/is");
  3. // prettier-ignore
  4. var possibleTypes = { "object": true, "function": true, "undefined": true /* document.all */ };
  5. module.exports = function (value) {
  6. if (!isValue(value)) return false;
  7. return hasOwnProperty.call(possibleTypes, typeof value);
  8. };