Sha256: 96a20b4ec424be1b920782372ec136d63c5316ade5649162619f77f947ded846

Contents?: true

Size: 664 Bytes

Versions: 66

Compression:

Stored size: 664 Bytes

Contents

'use strict';
var isObject = require('./_is-object');
var getPrototypeOf = require('./_object-gpo');
var HAS_INSTANCE = require('./_wks')('hasInstance');
var FunctionProto = Function.prototype;
// 19.2.3.6 Function.prototype[@@hasInstance](V)
if (!(HAS_INSTANCE in FunctionProto)) require('./_object-dp').f(FunctionProto, HAS_INSTANCE, { value: function (O) {
  if (typeof this != 'function' || !isObject(O)) return false;
  if (!isObject(this.prototype)) return O instanceof this;
  // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
  while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
  return false;
} });

Version data entries

66 entries across 30 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.52 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.52 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.50 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.49 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.48 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.47 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.46 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.45 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.44 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.43 node_modules/core-js/library/modules/es6.function.has-instance.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/es6.function.has-instance.js