Sha256: de26aedb5a35c9187ad4d76793e46987461a738ad87ae6687c517da0e53d4fe2

Contents?: true

Size: 731 Bytes

Versions: 9

Compression:

Stored size: 731 Bytes

Contents

'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $map = require('../internals/array-iteration').map;
var speciesConstructor = require('../internals/species-constructor');

var aTypedArray = ArrayBufferViewCore.aTypedArray;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;

// `%TypedArray%.prototype.map` method
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.map
ArrayBufferViewCore.exportProto('map', function map(mapfn /* , thisArg */) {
  return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
    return new (aTypedArrayConstructor(speciesConstructor(O, O.constructor)))(length);
  });
});

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/core-js/modules/es.typed-array.map.js
disco_app-0.18.2 test/dummy/node_modules/core-js/modules/es.typed-array.map.js
jester-data-8.0.0 node_modules/core-js/modules/es.typed-array.map.js
ezii-os-5.2.1 node_modules/core-js/modules/es.typed-array.map.js
ezii-os-2.0.1 node_modules/core-js/modules/es.typed-array.map.js
ezii-os-1.1.0 node_modules/core-js/modules/es.typed-array.map.js
ezii-os-1.0.0 node_modules/core-js/modules/es.typed-array.map.js
ezii-os-0.0.0.1.0 node_modules/core-js/modules/es.typed-array.map.js
ezii-os-0.0.0.0.1 node_modules/core-js/modules/es.typed-array.map.js