# array-map

> `[].map(f)` for older browsers

Latest version **0.0.1** (published 2022-10-12) · MIT license · 0 weekly downloads

> **Native alternative:** Array.prototype.map — Use native JavaScript (Node 0.10.0+) (https://developer.mozilla.orgGlobal_Objects/Array/map)

## Install

```sh
npm install array-map
pnpm add array-map
yarn add array-map
bun add array-map
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-10-12 |
| First published | 2013-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | James Halliday |
| Maintainers | substack, ljharb, nopersonsmodules |
| Keywords | array, map, browser, es5, shim, ie6, ie7, ie8 |

## Links

- npm: https://www.npmjs.com/package/array-map
- Repository: https://github.com/ljharb/array-map
- Issues: https://github.com/ljharb/array-map/issues
- Funding: https://github.com/sponsors/ljharb
- npm.io page: https://npm.io/package/array-map

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2022-10-12
- 0.0.0 — 2013-12-24

## README

# array-map <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

`[].map(f)` for older browsers

# example

``` js
var map = require('array-map');
var letters = map([97,98,99], function (c) {
	return String.fromCharCode(c);
});
console.log(letters.join(''));
```

output:

```
abc
```

# methods

``` js
var map = require('array-map')
```

## var ys = map(xs, f)

Create a new array `ys` by applying `f(xs[i], i, xs)` to each element in `xs` at
index `i`.

# install

With [npm](https://npmjs.org) do:

```
npm install array-map
```

# license

MIT

[package-url]: https://npmjs.org/package/array-map
[npm-version-svg]: https://versionbadg.es/ljharb/array-map.svg
[deps-svg]: https://david-dm.org/ljharb/array-map.svg
[deps-url]: https://david-dm.org/ljharb/array-map
[dev-deps-svg]: https://david-dm.org/ljharb/array-map/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/array-map#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/array-map.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/array-map.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/array-map.svg
[downloads-url]: https://npm-stat.com/charts.html?package=array-map
[codecov-image]: https://codecov.io/gh/ljharb/array-map/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/array-map/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/array-map
[actions-url]: https://github.com/ljharb/array-map/actions

---
_Source: https://npm.io/package/array-map · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
