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 265B

12345678910111213
  1. "use strict";
  2. var isObject = require("../object/is");
  3. module.exports = function (value) {
  4. if (!isObject(value)) return false;
  5. try {
  6. if (!value.constructor) return false;
  7. return value.constructor.prototype === value;
  8. } catch (error) {
  9. return false;
  10. }
  11. };