PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/_species-constructor.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 9 lines | 8 code | 0 blank | 1 comment | 2 complexity | 0d2da90cd1f85fcd3891005fa29615a4 MD5 | raw file
1// 7.3.20 SpeciesConstructor(O, defaultConstructor)
2var anObject = require('./_an-object');
3var aFunction = require('./_a-function');
4var SPECIES = require('./_wks')('species');
5module.exports = function (O, D) {
6  var C = anObject(O).constructor;
7  var S;
8  return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
9};