Sha256: 76292aad014f0dbf94c3678b04a74eeca83dc296eccf5e2cc67a18fd7ca2dcb2

Contents?: true

Size: 475 Bytes

Versions: 64

Compression:

Stored size: 475 Bytes

Contents

var isObject = require('./_is-object');
var isArray = require('./_is-array');
var SPECIES = require('./_wks')('species');

module.exports = function (original) {
  var C;
  if (isArray(original)) {
    C = original.constructor;
    // cross-realm fallback
    if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
    if (isObject(C)) {
      C = C[SPECIES];
      if (C === null) C = undefined;
    }
  } return C === undefined ? Array : C;
};

Version data entries

64 entries across 29 versions & 8 rubygems

Version Path
condenser-0.0.4 lib/condenser/processors/node_modules/core-js/modules/_array-species-constructor.js
condenser-0.0.4 lib/condenser/processors/node_modules/core-js/library/modules/_array-species-constructor.js
dragonfly_puppeteer-0.1.0 node_modules/core-js/library/modules/_array-species-constructor.js
dragonfly_puppeteer-0.1.0 node_modules/core-js/modules/_array-species-constructor.js