{"_id":"@arr/map","_rev":"319419","name":"@arr/map","description":"A tiny, faster alternative to native Array.prototype.map","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"time":{"modified":"2021-06-03T20:13:06.000Z","created":"2017-07-09T00:05:04.659Z","1.0.1":"2019-10-23T11:58:49.881Z","1.0.0":"2017-07-13T01:52:03.072Z","0.2.0":"2017-07-13T01:47:55.657Z","0.1.0":"2017-07-09T00:05:04.659Z"},"users":{},"author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"versions":{"1.0.1":{"name":"@arr/map","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.map","types":"module.d.ts","module":"module.js","main":"index.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"https://lukeed.com"},"engines":{"node":">=4"},"keywords":["arr","array","Array.map","Array.prototype.map","performance","native","map"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/map@1.0.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"shasum":"32e7123dcee03a9a4f49a79a7247425e78431050","size":1187,"noattachment":false,"key":"/@arr/map/-/@arr/map-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/map/download/@arr/map-1.0.1.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map_1.0.1_1571831929715_0.7352344518962293"},"_hasShrinkwrap":false,"publish_time":1571831929881,"_cnpm_publish_time":1571831929881},"1.0.0":{"name":"@arr/map","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.map","module":"module.js","main":"index.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"lukeed.com"},"engines":{"node":">=4"},"scripts":{"bench":"node bench","test":"tape test/*.js | tap-spec"},"files":["*.js"],"keywords":["arr","array","Array.map","Array.prototype.map","performance","native","map"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/map@1.0.0","_shasum":"bca3c97ccf003d6d0435518af6f5ba03a5e216b7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"bca3c97ccf003d6d0435518af6f5ba03a5e216b7","size":1165,"noattachment":false,"key":"/@arr/map/-/@arr/map-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/map/download/@arr/map-1.0.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map-1.0.0.tgz_1499910722964_0.7090961374342442"},"directories":{},"publish_time":1499910723072,"_hasShrinkwrap":false,"_cnpm_publish_time":1499910723072},"0.2.0":{"name":"@arr/map","version":"0.2.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.map","module":"module.js","main":"index.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"lukeed.com"},"engines":{"node":">=4"},"scripts":{"bench":"node bench","test":"tape test/*.js | tap-spec"},"files":["*.js"],"keywords":["arr","array","Array.map","Array.prototype.map","performance","native","map"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/map@0.2.0","_shasum":"2494e57e0c907594e02c7f87d74bca2c0ee8dbc0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"2494e57e0c907594e02c7f87d74bca2c0ee8dbc0","size":1163,"noattachment":false,"key":"/@arr/map/-/@arr/map-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/map/download/@arr/map-0.2.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map-0.2.0.tgz_1499910475548_0.914778960403055"},"directories":{},"publish_time":1499910475657,"_hasShrinkwrap":false,"_cnpm_publish_time":1499910475657},"0.1.0":{"name":"@arr/map","version":"0.1.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.map","module":"module.js","main":"index.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"lukeed.com"},"engines":{"node":">=4"},"scripts":{"bench":"node bench","test":"tape test/*.js | tap-spec"},"files":["*.js"],"keywords":["arr","array","Array.map","Array.prototype.map","performance","native","map"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/map@0.1.0","_shasum":"dc659eb12796549751ee086fc32d5d2251663f74","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"dc659eb12796549751ee086fc32d5d2251663f74","size":630,"noattachment":false,"key":"/@arr/map/-/@arr/map-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/map/download/@arr/map-0.1.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map-0.1.0.tgz_1499558704468_0.20240747067146003"},"directories":{},"publish_time":1499558704659,"_hasShrinkwrap":false,"_cnpm_publish_time":1499558704659}},"readme":"# @arr/map\n\n> A tiny, faster alternative to native `Array.prototype.map`\n\n:warning: Unlike native, `@arr/map` does _not_ support the optional `thisArg` parameter!\n\n:warning: Unlike native, `@arr/map` does _not_ respect [Array holes](http://2ality.com/2015/09/holes-arrays-es6.html) -- you probably never needed this... :thinking:\n\n## Install\n\n```\n$ npm install --save @arr/map\n```\n\n## Usage\n\n```js\nimport map from '@arr/map';\n\nconst nums = [1, 5, 10, 15];\nconst doubles = map(nums, x => x * 2);\n//=> doubles is: [2, 10, 20, 30]\n//=> numbers is: [1, 5, 10, 15]\n```\n\n## API\n\n### map(arr, callback)\n\n#### arr\nType: `Array`<br>\nThe array to iterate upon.\n\n#### callback(value[, index, array])\nType: `Function`<br>\nFunction to test for each element, taking three arguments:\n\n* **value** (required) -- The current element being processed in the array.\n* **index** (optional) -- The index of the current element being processed in the array.\n* **array** (optional) -- The array `map` was called upon.\n\n\n## License\n\nMIT © [Luke Edwards](http://lukeed.com)\n","_attachments":{},"homepage":"https://github.com/lukeed/arr#readme","bugs":{"url":"https://github.com/lukeed/arr/issues"},"license":"MIT"}