Sha256: ee5b3509f3a3b6d708778fcbacd3cd50921d2dcb5896a8ff96986bd7ec225ba1

Contents?: true

Size: 670 Bytes

Versions: 9

Compression:

Stored size: 670 Bytes

Contents

'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-arrays-constructors-requires-wrappers');

var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;

// `%TypedArray%.of` method
// https://tc39.github.io/ecma262/#sec-%typedarray%.of
ArrayBufferViewCore.exportStatic('of', function of(/* ...items */) {
  var index = 0;
  var length = arguments.length;
  var result = new (aTypedArrayConstructor(this))(length);
  while (length > index) result[index] = arguments[index++];
  return result;
}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);

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.of.js
disco_app-0.18.2 test/dummy/node_modules/core-js/modules/es.typed-array.of.js
jester-data-8.0.0 node_modules/core-js/modules/es.typed-array.of.js
ezii-os-5.2.1 node_modules/core-js/modules/es.typed-array.of.js
ezii-os-2.0.1 node_modules/core-js/modules/es.typed-array.of.js
ezii-os-1.1.0 node_modules/core-js/modules/es.typed-array.of.js
ezii-os-1.0.0 node_modules/core-js/modules/es.typed-array.of.js
ezii-os-0.0.0.1.0 node_modules/core-js/modules/es.typed-array.of.js
ezii-os-0.0.0.0.1 node_modules/core-js/modules/es.typed-array.of.js