{"_id":"array.from","_rev":"1986808","name":"array.from","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"time":{"modified":"2021-12-16T14:16:15.000Z","created":"2013-12-22T17:39:02.794Z","1.1.1":"2021-12-09T21:03:09.953Z","1.1.0":"2020-01-17T19:02:55.451Z","1.0.3":"2016-09-10T23:01:30.091Z","1.0.2":"2016-06-24T06:25:26.148Z","1.0.1":"2016-03-29T06:55:52.226Z","1.0.0":"2016-01-26T18:58:35.161Z","0.3.0":"2015-12-11T08:53:39.309Z","0.2.0":"2014-08-18T08:00:21.401Z","0.1.0":"2013-12-22T17:39:02.794Z"},"users":{"wenbing":true,"d10":true},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"versions":{"1.1.1":{"name":"array.from","version":"1.1.1","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/array-from","main":"index.js","keywords":["array","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"contributors":[{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"directories":{"test":"test"},"scripts":{"prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"aud --production","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound"},"devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^20.0.0","aud":"^1.1.5","eslint":"^8.4.1","has-symbols":"^1.0.2","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.3.2"},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.19.1","iterate-value":"^1.0.2"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"gitHead":"4ca0a9515ebcc1315a13e2099e4291dfca1d1d83","_id":"array.from@1.1.1","_nodeVersion":"17.2.0","_npmVersion":"8.1.4","dist":{"shasum":"73df5f8473625d8ab73da05c6745893054ef6976","size":8107,"noattachment":false,"key":"/array.from/-/array.from-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-1.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.from_1.1.1_1639083789778_0.34600348531001357"},"_hasShrinkwrap":false,"publish_time":1639083789953,"_cnpm_publish_time":1639083789953},"1.1.0":{"name":"array.from","version":"1.1.0","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/array-from","main":"index.js","keywords":["array","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"contributors":[{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"directories":{"test":"test"},"scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","test":"es-shim-api --bound && npm run tests-only","tests-only":"node test","posttest":"npx aud","coverage":"covert test/index.js","lint":"eslint ."},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.1.0","covert":"^1.1.1","eslint":"^6.8.0","has-symbols":"^1.0.1","safe-publish-latest":"^1.1.4","tape":"^5.0.0-next.3"},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.2","iterate-value":"^1.0.1"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"gitHead":"8e9303e48d0fc7a649b490d1a1f12151a6e955f2","_id":"array.from@1.1.0","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"shasum":"56eada525b730f10d41cd5c5e01259be93b3ec74","size":7859,"noattachment":false,"key":"/array.from/-/array.from-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-1.1.0.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.from_1.1.0_1579287775311_0.5556861522320566"},"_hasShrinkwrap":false,"publish_time":1579287775451,"_cnpm_publish_time":1579287775451},"1.0.3":{"name":"array.from","version":"1.0.3","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/array-from","main":"index.js","keywords":["array","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"contributors":[{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"files":["LICENSE-MIT.txt","implementation.js","index.js","polyfill.js","shim.js"],"directories":{"test":"tests"},"scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","test":"es-shim-api --bound && npm run tests-only","tests-only":"node tests/*.js","coverage":"covert tests/*.js","lint":"eslint *.js tests/*.js"},"devDependencies":{"@es-shims/api":"^1.2.0","covert":"^1.1.0","tape":"^4.6.0","eslint":"^3.5.0","@ljharb/eslint-config":"^8.0.0","safe-publish-latest":"^1.0.1"},"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.6.1"},"gitHead":"d4aee2699f145e9436876f06d60a560f7e1a6f5f","_id":"array.from@1.0.3","_shasum":"cb586aad92067f341229f41e0ed643281dba56b7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"cb586aad92067f341229f41e0ed643281dba56b7","size":3910,"noattachment":false,"key":"/array.from/-/array.from-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-1.0.3.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/array.from-1.0.3.tgz_1473548487659_0.5191759904846549"},"publish_time":1473548490091,"_cnpm_publish_time":1473548490091,"_hasShrinkwrap":false},"1.0.2":{"name":"array.from","version":"1.0.2","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/array-from","main":"index.js","keywords":["array","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"contributors":[{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"files":["LICENSE-MIT.txt","implementation.js","index.js","polyfill.js","shim.js"],"directories":{"test":"tests"},"scripts":{"test":"npm run lint && es-shim-api --bound && npm run tests-only","tests-only":"node tests/*.js","cover":"covert tests/*.js","lint":"eslint *.js tests/*.js"},"devDependencies":{"@es-shims/api":"^1.2.0","covert":"^1.1.0","tape":"^4.6.0","eslint":"^2.13.1","@ljharb/eslint-config":"^5.0.0"},"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.5.1"},"gitHead":"f2b4b69132842aea5808b766b18e639e37c466bf","_id":"array.from@1.0.2","_shasum":"eb5be31e325b0362a649d6957998aa0269921bf1","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"eb5be31e325b0362a649d6957998aa0269921bf1","size":2845,"noattachment":false,"key":"/array.from/-/array.from-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-1.0.2.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/array.from-1.0.2.tgz_1466749522270_0.9663772261701524"},"publish_time":1466749526148,"_cnpm_publish_time":1466749526148,"_hasShrinkwrap":false},"1.0.1":{"name":"array.from","version":"1.0.1","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/array-from","main":"index.js","keywords":["array","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"contributors":[{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"files":["LICENSE-MIT.txt","implementation.js","index.js","polyfill.js","shim.js"],"directories":{"test":"tests"},"scripts":{"test":"npm run lint && es-shim-api --bound && npm run tests-only","tests-only":"node tests/*.js","cover":"covert tests/*.js","lint":"eslint *.js tests/*.js"},"devDependencies":{"@es-shims/api":"^1.0.0","covert":"^1.1.0","tape":"^4.4.0","eslint":"^1.10.3","@ljharb/eslint-config":"^1.6.1"},"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.5.0"},"gitHead":"f5d48e4d1bb696183417077f65b504060a3d5197","_id":"array.from@1.0.1","_shasum":"6bc671238937d17a6281326240c58137d9accc73","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"6bc671238937d17a6281326240c58137d9accc73","size":3690,"noattachment":false,"key":"/array.from/-/array.from-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/array.from-1.0.1.tgz_1459234551280_0.701474271947518"},"publish_time":1459234552226,"_cnpm_publish_time":1459234552226,"_hasShrinkwrap":false},"1.0.0":{"name":"array.from","version":"1.0.0","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/array-from","main":"detect.js","keywords":["array","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"contributors":[{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"files":["LICENSE-MIT.txt","implementation.js","index.js","polyfill.js","shim.js"],"directories":{"test":"tests"},"scripts":{"test":"npm run lint && es-shim-api --bound && npm run tests-only","tests-only":"node tests/*.js","cover":"covert tests/*.js","lint":"eslint *.js tests/*.js"},"devDependencies":{"@es-shims/api":"^1.0.0","covert":"^1.1.0","tape":"^4.4.0","eslint":"^1.10.3","@ljharb/eslint-config":"^1.6.1"},"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.5.0"},"gitHead":"101509cf70f2dbe4a80a2715b06442ea42f6a902","_id":"array.from@1.0.0","_shasum":"ede30e6da9b22f7462d666fc59c21d8db6619aaa","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"ede30e6da9b22f7462d666fc59c21d8db6619aaa","size":3649,"noattachment":false,"key":"/array.from/-/array.from-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-1.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"publish_time":1453834715161,"_cnpm_publish_time":1453834715161,"_hasShrinkwrap":false},"0.3.0":{"name":"array.from","version":"0.3.0","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/array-from","main":"detect.js","keywords":["array","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"contributors":[{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"files":["LICENSE-MIT.txt","array-from.js","detect.js"],"directories":{"test":"tests"},"scripts":{"test":"node tests/*.js","cover":"covert tests/*.js"},"devDependencies":{"covert":"^1.1.0","tape":"^4.2.2"},"gitHead":"c7cd7810644edcd53d6749aa8c54bb7e0eb678bc","_id":"array.from@0.3.0","_shasum":"a30720e2caef5c174e75bda70b64fec5bcfd92ef","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"a30720e2caef5c174e75bda70b64fec5bcfd92ef","size":3015,"noattachment":false,"key":"/array.from/-/array.from-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-0.3.0.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"publish_time":1449824019309,"_cnpm_publish_time":1449824019309,"_hasShrinkwrap":false},"0.2.0":{"name":"array.from","version":"0.2.0","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"http://mths.be/array-from","main":"array-from.js","keywords":["array","es6","ecmascript","polyfill"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"files":["LICENSE-MIT.txt","array-from.js"],"directories":{"test":"tests"},"scripts":{"test":"node tests/*.js","cover":"covert tests/*.js"},"devDependencies":{"covert":"~1.0.0","tape":"~2.14.0"},"_id":"array.from@0.2.0","_shasum":"2c627b1b76dff2def2365fa052b65c3d585e5f6b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"dist":{"shasum":"2c627b1b76dff2def2365fa052b65c3d585e5f6b","size":2675,"noattachment":false,"key":"/array.from/-/array.from-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-0.2.0.tgz"},"publish_time":1408348821401,"_cnpm_publish_time":1408348821401,"_hasShrinkwrap":false},"0.1.0":{"name":"array.from","version":"0.1.0","description":"A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.","homepage":"http://mths.be/array-from","main":"array-from.js","keywords":["string","unicode","es6","ecmascript","polyfill"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/Array.from.git"},"bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"files":["LICENSE-MIT.txt","array-from.js"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js","cover":"istanbul cover --report html --verbose --dir coverage tests/tests.js"},"readmeFilename":"README.md","_id":"array.from@0.1.0","dist":{"shasum":"73ace233ac7ab5146f02d06fcda6fc2c115f1d3a","size":2423,"noattachment":false,"key":"/array.from/-/array.from-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.from/download/array.from-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"ljharb","email":""},{"name":"mathias","email":""}],"publish_time":1387733942794,"_hasShrinkwrap":false,"_cnpm_publish_time":1387733942794}},"readme":"# Array.from <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nA spec-compliant `Array.from` shim/polyfill/replacement that works as far down as ES3.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-array.from).\n\nThe `Array.from()` method creates a new Array instance from an array-like or iterable object.\n\n## Installation\n\n```bash\nnpm install array.from\n```\n\n## Example\n\n```js\nvar from = require('array.from');\nvar assert = require('assert');\n\nassert.deepEqual(from('abc'), ['a', 'b', 'c']);\n```\n\n```js\nvar from = require('array.from');\nvar assert = require('assert');\n/* when Array#from is not present */\ndelete Array.from;\nvar shimmedFrom = from.shim();\nassert.equal(shimmedFrom, from.getPolyfill());\nassert.deepEqual(Array.from('foo'), from('foo'));\n```\n\n```js\nvar from = require('array.from');\nvar assert = require('assert');\n/* when Array#from is present */\nvar shimmedFrom = from.shim();\nassert.equal(shimmedFrom, Array.from);\nassert.deepEqual(Array.from('abc'), from('abc'));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n## Author\n\n| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\n|---|\n| [Mathias Bynens](https://mathiasbynens.be/) |\n\n## License\n\nThis polyfill is available under the [MIT](https://mths.be/mit) license.\n\n[package-url]: https://npmjs.org/package/array.from\n[npm-version-svg]: http://versionbadg.es/mathiasbynens/Array.from.svg\n[travis-svg]: https://travis-ci.org/mathiasbynens/Array.from.svg\n[travis-url]: https://travis-ci.org/mathiasbynens/Array.from\n[deps-svg]: https://david-dm.org/mathiasbynens/Array.from.svg\n[deps-url]: https://david-dm.org/mathiasbynens/Array.from\n[dev-deps-svg]: https://david-dm.org/mathiasbynens/Array.from/dev-status.svg\n[dev-deps-url]: https://david-dm.org/mathiasbynens/Array.from#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/array.from.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/array.from.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/array.from.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=array.from\n","_attachments":{},"homepage":"https://mths.be/array-from","bugs":{"url":"https://github.com/mathiasbynens/Array.from/issues"},"license":"MIT"}