{"_id":"array-map","_rev":"4177587","name":"array-map","description":"`[].map(f)` for older browsers","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2026-03-01T21:38:55.000Z","created":"2013-12-24T23:48:22.778Z","0.0.1":"2022-10-12T07:59:08.458Z","0.0.0":"2013-12-24T23:48:22.778Z"},"users":{"mightyiam":true},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git://github.com/ljharb/array-map.git"},"versions":{"0.0.1":{"name":"array-map","version":"0.0.1","description":"`[].map(f)` for older browsers","main":"index.js","devDependencies":{"@ljharb/eslint-config":"^21.0.0","aud":"^2.0.1","auto-changelog":"^2.4.0","eslint":"=8.8.0","in-publish":"^2.0.1","npmignore":"^0.3.0","safe-publish-latest":"^2.0.0","tape":"^5.6.1"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git://github.com/ljharb/array-map.git"},"homepage":"https://github.com/ljharb/array-map","keywords":["array","map","browser","es5","shim","ie6","ie7","ie8"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/6..latest","firefox/3.5","firefox/latest","chrome/5","chrome/latest","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"5a7c493264e8b08eee8535a986786be438f37fd8","bugs":{"url":"https://github.com/ljharb/array-map/issues"},"_id":"array-map@0.0.1","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"shasum":"d1bf3cc8813a7daaa335e5c8eb21d9d06230c1a7","size":4586,"noattachment":false,"key":"/array-map/-/array-map-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-map/download/array-map-0.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-map_0.0.1_1665561548251_0.029053590069004098"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-17T07:09:43.308Z","publish_time":1665561548458,"_cnpm_publish_time":1665561548458},"0.0.0":{"name":"array-map","version":"0.0.0","description":"`[].map(f)` for older browsers","main":"index.js","devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/substack/array-map.git"},"homepage":"https://github.com/substack/array-map","keywords":["array","map","browser","es5","shim","ie6","ie7","ie8"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/6..latest","firefox/3.5","firefox/latest","chrome/5","chrome/latest","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"readme.markdown","bugs":{"url":"https://github.com/substack/array-map/issues"},"_id":"array-map@0.0.0","dist":{"shasum":"88a2bab73d1cf7bcd5c1b118a003f66f665fa662","size":2295,"noattachment":false,"key":"/array-map/-/array-map-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-map/download/array-map-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1387928902778,"_hasShrinkwrap":false,"_cnpm_publish_time":1387928902778}},"readme":"# array-map <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n`[].map(f)` for older browsers\n\n# example\n\n``` js\nvar map = require('array-map');\nvar letters = map([97,98,99], function (c) {\n\treturn String.fromCharCode(c);\n});\nconsole.log(letters.join(''));\n```\n\noutput:\n\n```\nabc\n```\n\n# methods\n\n``` js\nvar map = require('array-map')\n```\n\n## var ys = map(xs, f)\n\nCreate a new array `ys` by applying `f(xs[i], i, xs)` to each element in `xs` at\nindex `i`.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install array-map\n```\n\n# license\n\nMIT\n\n[package-url]: https://npmjs.org/package/array-map\n[npm-version-svg]: https://versionbadg.es/ljharb/array-map.svg\n[deps-svg]: https://david-dm.org/ljharb/array-map.svg\n[deps-url]: https://david-dm.org/ljharb/array-map\n[dev-deps-svg]: https://david-dm.org/ljharb/array-map/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/array-map#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/array-map.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/array-map.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/array-map.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=array-map\n[codecov-image]: https://codecov.io/gh/ljharb/array-map/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/array-map/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/array-map\n[actions-url]: https://github.com/ljharb/array-map/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/array-map","bugs":{"url":"https://github.com/ljharb/array-map/issues"},"license":"MIT"}