BVB Source Codes

reactide Show es6.function.has-instance.js Source code

Return Download reactide: download es6.function.has-instance.js Source code - Download reactide Source code - Type:.js
  1. 'use strict';
  2. var isObject       = require('./_is-object')
  3.   , getPrototypeOf = require('./_object-gpo')
  4.   , HAS_INSTANCE   = require('./_wks')('hasInstance')
  5.   , FunctionProto  = Function.prototype;
  6. // 19.2.3.6 Function.prototype[@@hasInstance](V)
  7. if(!(HAS_INSTANCE in FunctionProto))require('./_object-dp').f(FunctionProto, HAS_INSTANCE, {value: function(O){
  8.   if(typeof this != 'function' || !isObject(O))return false;
  9.   if(!isObject(this.prototype))return O instanceof this;
  10.   // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
  11.   while(O = getPrototypeOf(O))if(this.prototype === O)return true;
  12.   return false;
  13. }});
downloades6.function.has-instance.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top