2017-06-08_509bba0/509bba0_unpacked_with_node_modules/~/core-js/modules/_inherit-if-required.js

15 lines
457 B
JavaScript
Raw Normal View History

2022-07-26 17:06:20 +00:00
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;
};
//////////////////
// WEBPACK FOOTER
// ./~/core-js/modules/_inherit-if-required.js
// module id = 572
// module chunks = 4