Sha256: a50b50f6dccbc8844059acf7ca4048a50c0656e1d88c419f1dac83f9cd6881a8
Contents?: true
Size: 655 Bytes
Versions: 320
Compression:
Stored size: 655 Bytes
Contents
'use strict'; var isObject = require('./_is-object') , getPrototypeOf = require('./_object-gpo') , HAS_INSTANCE = require('./_wks')('hasInstance') , 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
320 entries across 8 versions & 3 rubygems