5e70eed004c2518d27894de6940d445bd07e44027b6b8a679c97cad93a77f63ee09bceadcb95b09b1f7128c84b49f2f0db92654cb95ded4fb272383d73c6cc 478 B

123456789101112131415161718
  1. /** Used for built-in method references. */
  2. var objectProto = Object.prototype;
  3. /**
  4. * Checks if `value` is likely a prototype object.
  5. *
  6. * @private
  7. * @param {*} value The value to check.
  8. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  9. */
  10. function isPrototype(value) {
  11. var Ctor = value && value.constructor,
  12. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13. return value === proto;
  14. }
  15. export default isPrototype;