Sha256: 374508bb7855d99d5e53a631b1380b53096246dbd19b8ad4eec8b150f0c9b618

Contents?: true

Size: 749 Bytes

Versions: 6

Compression:

Stored size: 749 Bytes

Contents

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

var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;

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

6 entries across 6 versions & 3 rubygems

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