dienstplan/node_modules/core-js/modules/_inherit-if-required.js
2017-09-13 07:52:34 +02:00

8 lines
331 B
JavaScript
Vendored

var isObject = require('./_is-object')
, setPrototypeOf = require('./_set-proto').set;
module.exports = function(that, target, C){
var P, S = target.constructor;
if(S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf){
setPrototypeOf(that, P);
} return that;
};