Sha256: 9765e7da313c93b47587c92bcf9e92e137240f407dfdf6724c3a07314a774dda

Contents?: true

Size: 795 Bytes

Versions: 6

Compression:

Stored size: 795 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;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;

// `%TypedArray%.prototype.map` method
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.map
exportTypedArrayMethod('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

6 entries across 6 versions & 3 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/core-js/modules/es.typed-array.map.js
tang-0.2.1 spec/tang_app/node_modules/core-js/modules/es.typed-array.map.js
tang-0.2.0 spec/tang_app/node_modules/core-js/modules/es.typed-array.map.js
tang-0.1.0 spec/tang_app/node_modules/core-js/modules/es.typed-array.map.js
tang-0.0.9 spec/tang_app/node_modules/core-js/modules/es.typed-array.map.js
enju_library-0.3.8 spec/dummy/node_modules/core-js/modules/es.typed-array.map.js