Sha256: d1833958c348cc134cfbb6b312d02545d1a0836f4548bafcce9453c466494b91
Contents?: true
Size: 574 Bytes
Versions: 29
Compression:
Stored size: 574 Bytes
Contents
'use strict'; var getPrototypeOf = Object.getPrototypeOf, prototype = Object.prototype , toString = prototype.toString , id = Object().toString(); module.exports = function (value) { var proto, constructor; if (!value || (typeof value !== 'object') || (toString.call(value) !== id)) { return false; } proto = getPrototypeOf(value); if (proto === null) { constructor = value.constructor; if (typeof constructor !== 'function') return true; return (constructor.prototype !== value); } return (proto === prototype) || (getPrototypeOf(proto) === null); };
Version data entries
29 entries across 19 versions & 7 rubygems