![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
array.from
Advanced tools
A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.
A spec-compliant Array.from
shim/polyfill/replacement that works as far down as ES3.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the proposed spec.
The Array.from()
method creates a new Array instance from an array-like or iterable object.
npm install array.from
var from = require('array.from');
var assert = require('assert');
assert.deepEqual(from('abc'), ['a', 'b', 'c']);
var from = require('array.from');
var assert = require('assert');
/* when Array#from is not present */
delete Array.from;
var shimmedFrom = from.shim();
assert.equal(shimmedFrom, from.getPolyfill());
assert.deepEqual(Array.from('foo'), from('foo'));
var from = require('array.from');
var assert = require('assert');
/* when Array#from is present */
var shimmedFrom = from.shim();
assert.equal(shimmedFrom, Array.from);
assert.deepEqual(Array.from('abc'), from('abc'));
Simply clone the repo, npm install
, and run npm test
Mathias Bynens |
This polyfill is available under the MIT license.
v1.1.4 - 2023-02-23
npmignore
to autogenerate an npmignore file 5b6ad44
es-abstract
, define-properties
f24ca6b
auto-changelog
1dcac08
@ljharb/eslint-config
, @es-shims/api
, aud
, tape
20d7da6
mock-property
0a5711e
3c6098f
4970dd1
es-abstract
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, has-symbols
, tape
es-abstract
, iterate-value
eslint
, @ljharb/eslint-config
, @es-shims/api
, has-symbols
, safe-publish-latest
, tape
; add nyc
es-get-iterator
/iterate-value
auto
entry pointes-abstract
's IsConstructor
to support ES2015 classes (#54)system.global
; it’s unnecessaryis-callable
dependencyfor..of
on truly iterable thingsdefine-properties
es-abstract
; refactor to use split opseslint
, @ljharb/eslint-config
, covert
, safe-publish-latest
, tape
npx aud
in posttest
undefined
mapping argument is ignored; fix tests (#32)es-abstract
eslint
, @ljharb/eslint-config
safe-publish-latest
node
v6.2
es-abstract
@es-shims/api
, tape
, eslint
, @ljharb/eslint-config
node
v5.9
, v4.4
Array.from
should have Array
as the this
value.tape
node
v5.5
npm run lint
tape
, covert
node
v5.1
FAQs
A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.
The npm package array.from receives a total of 2,661 weekly downloads. As such, array.from popularity was classified as popular.
We found that array.from demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.