{"id":13772179,"url":"https://github.com/b12-archive/array-from","last_synced_at":"2025-05-11T04:31:11.400Z","repository":{"id":31913573,"uuid":"35482763","full_name":"b12-archive/array-from","owner":"b12-archive","description":"A ponyfill for the ES 2015 `Array.from()`","archived":true,"fork":false,"pushed_at":"2020-11-02T07:47:34.000Z","size":35,"stargazers_count":16,"open_issues_count":8,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-01T11:05:20.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/array-from","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b12-archive.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-12T10:53:23.000Z","updated_at":"2023-08-21T14:01:38.000Z","dependencies_parsed_at":"2022-09-10T22:40:16.870Z","dependency_job_id":null,"html_url":"https://github.com/b12-archive/array-from","commit_stats":null,"previous_names":["b12-archive/array-from","studio-b12/array-from"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b12-archive%2Farray-from","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b12-archive%2Farray-from/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b12-archive%2Farray-from/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b12-archive%2Farray-from/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b12-archive","download_url":"https://codeload.github.com/b12-archive/array-from/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252940932,"owners_count":21828769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:00.997Z","updated_at":"2025-05-11T04:31:10.006Z","avatar_url":"https://github.com/b12-archive.png","language":"JavaScript","funding_links":[],"categories":["Arrays"],"sub_categories":[],"readme":"[![Coveralls – test coverage\n](https://img.shields.io/coveralls/studio-b12/array-from.svg?style=flat-square\n)](https://coveralls.io/r/studio-b12/array-from\n) [![Travis – build status\n](https://img.shields.io/travis/studio-b12/array-from/master.svg?style=flat-square\n)](https://travis-ci.org/studio-b12/array-from\n) [![David – status of dependencies\n](https://img.shields.io/david/studio-b12/array-from.svg?style=flat-square\n)](https://david-dm.org/studio-b12/array-from\n) [![Code style: airbnb\n](https://img.shields.io/badge/code%20style-airbnb-777777.svg?style=flat-square\n)](https://github.com/airbnb/javascript)\n\n\n\n\narray-from\n==========\n\n**A ponyfill for the ES 2015 [`Array.from()`][].**\n\n**\u0026ast; Ponyfill**: A polyfill that doesn't overwrite the native method.  \n**\u0026ast; ES 2015**: The new name for ES6 that [nobody expected][].\n\nModeled after the final ES 2015 spec. Credits for the implementation go to the amazing folks of the MDN and [our awesome contributors](https://github.com/studio-b12/array-from/graphs/contributors).\n\n\u0026nbsp;\n\n[`Array.from()`]:         https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from                  \"Array.from()\"\n[nobody expected]:        http://webreflection.blogspot.de/2015/01/javascript-and-living-ecmascript.html                               \"JavaScript and the living ECMAScript Standard\"\n\n\n\nInstallation\n------------\n\n```sh\n$ npm install array-from\n```\n\n\n\n\nUsage\n-----\n\nRecommended:\n\n```js\nvar arrayFrom = require('array-from');\n  // You’ll get the native `Array.from` if it’s available.\n\nfunction () {console.log(\n  arrayFrom(arguments).map(require('1-liners/increment'))\n);}(1, 2, 3);\n//» [2, 3, 4]\n```\n\nYou can also use it as a classical polyfill. It’s [not recommended][], but sometimes practical:\n\n```js\nif (!Array.from) Array.from = require('array-from');\n  // This will affect all loaded modules.\n\nfunction () {console.log(\n  Array.from(arguments).map(require('1-liners/increment'))\n);}(1, 2, 3);\n//» [2, 3, 4]\n```\n\n[not recommended]:  https://github.com/sindresorhus/object-assign/issues/10#issuecomment-65065859  \"Optionally shim native method?\"\n\n\n\n\nSupport note\n------------\n\nWe support the _current_ and _active LTS_ release of Node.js. More info in [nodejs/LTS](https://github.com/nodejs/LTS#lts_schedule).\n\n\n\n\nLicense\n-------\n\n[MIT][] © [Studio B12 GmbH][]\n\n[MIT]: ./License.md\n[Studio B12 GmbH]: https://github.com/studio-b12\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb12-archive%2Farray-from","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb12-archive%2Farray-from","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb12-archive%2Farray-from/lists"}