Sha256: 8d61a3467aa621f39c08dd33a8f7eedcb019076505e8659ed31cc180d7bb805c
Contents?: true
Size: 422 Bytes
Versions: 10
Compression:
Stored size: 422 Bytes
Contents
var fails = require('../internals/fails'); var wellKnownSymbol = require('../internals/well-known-symbol'); var SPECIES = wellKnownSymbol('species'); module.exports = function (METHOD_NAME) { return !fails(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES] = function () { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); };
Version data entries
10 entries across 10 versions & 3 rubygems