# array-all-x

> Like Array.forEach but does not skip holes.

Latest version **1.1.2** (published 2019-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-all-x
pnpm add array-all-x
yarn add array-all-x
bun add array-all-x
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-08-28 |
| First published | 2019-08-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.11.4 |
| Dependencies | 2 |
| Unpacked size | 253.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Graham Fairweather |
| Maintainers | xotic750 |
| Keywords | array, all, module, javascript, nodejs, browser |

## Links

- npm: https://www.npmjs.com/package/array-all-x
- Repository: https://github.com/Xotic750/array-all-x
- Issues: https://github.com/Xotic750/array-all-x/issues
- npm.io page: https://npm.io/package/array-all-x

## Dependencies (2)

- [array-any-x](https://npm.io/package/array-any-x.md) ^1.1.2
- [simple-call-x](https://npm.io/package/simple-call-x.md) ^1.0.3

## 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

- 1.1.2 (latest) — 2019-08-28
- 1.1.1 — 2019-08-20
- 1.1.0 — 2019-08-14
- 1.0.2 — 2019-08-05
- 1.0.1 — 2019-08-05
- 1.0.0 — 2019-08-05

## README

<a
  href="https://travis-ci.org/Xotic750/array-all-x"
  title="Travis status">
<img
  src="https://travis-ci.org/Xotic750/array-all-x.svg?branch=master"
  alt="Travis status" height="18">
</a>
<a
  href="https://david-dm.org/Xotic750/array-all-x"
  title="Dependency status">
<img src="https://david-dm.org/Xotic750/array-all-x/status.svg"
  alt="Dependency status" height="18"/>
</a>
<a
  href="https://david-dm.org/Xotic750/array-all-x?type=dev"
  title="devDependency status">
<img src="https://david-dm.org/Xotic750/array-all-x/dev-status.svg"
  alt="devDependency status" height="18"/>
</a>
<a
  href="https://badge.fury.io/js/array-all-x"
  title="npm version">
<img src="https://badge.fury.io/js/array-all-x.svg"
  alt="npm version" height="18">
</a>
<a
  href="https://www.jsdelivr.com/package/npm/array-all-x"
  title="jsDelivr hits">
<img src="https://data.jsdelivr.com/v1/package/npm/array-all-x/badge?style=rounded"
  alt="jsDelivr hits" height="18">
</a>
<a
  href="https://bettercodehub.com/results/Xotic750/array-all-x"
  title="bettercodehub score">
<img src="https://bettercodehub.com/edge/badge/Xotic750/array-all-x?branch=master"
  alt="bettercodehub score" height="18">
</a>
<a
  href="https://coveralls.io/github/Xotic750/array-all-x?branch=master"
  title="Coverage Status">
<img src="https://coveralls.io/repos/github/Xotic750/array-all-x/badge.svg?branch=master"
  alt="Coverage Status" height="18">
</a>

<a name="module_array-all-x"></a>

## array-all-x

Like Array.forEach but does not skip holes.

<a name="exp_module_array-all-x--module.exports"></a>

### `module.exports` ⏏

This method executes a provided function once for each array element.

**Kind**: Exported member  
**Throws**:

- <code>TypeError</code> If array is null or undefined.
- <code>TypeError</code> If callBack is not a function.

| Param     | Type                  | Description                                   |
| --------- | --------------------- | --------------------------------------------- |
| array     | <code>array</code>    | The array to iterate over.                    |
| callBack  | <code>function</code> | Function to execute for each element.         |
| [thisArg] | <code>\*</code>       | Value to use as this when executing callback. |

**Example**

```js
import all from 'array-all-x';

const items = ['item1', 'item2', 'item3'];
const copy = [];

all(items, function(item) {
  copy.push(item);
});

console.log(copy); // ['item1', 'item2', 'item3']
```

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