# @ndhoule/every

> Check if a `predicate` function returns true for all values in a `collection`.

Latest version **2.0.1** (published 2016-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ndhoule/every
pnpm add @ndhoule/every
yarn add @ndhoule/every
bun add @ndhoule/every
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2016-05-02 |
| First published | 2016-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nathan Houle |
| Maintainers | ndhoule |
| Keywords | component, functional, all, every |

## Links

- npm: https://www.npmjs.com/package/@ndhoule/every
- Repository: https://github.com/ndhoule/every
- Issues: https://github.com/ndhoule/every/issues
- npm.io page: https://npm.io/package/@ndhoule/every

## Dependencies (1)

- [@ndhoule/each](https://npm.io/package/@ndhoule/each.md) ^2.0.1

## Recent versions

- 2.0.1 (latest) — 2016-05-02

## README

# every [![CI][ci-badge]][ci-link]

Check if a `predicate` function returns true for all values in a `collection`.

## Installation

```sh
$ component install ndhoule/every
$ npm install @ndhoule/every
```

## API

### `every(predicate : Function, collection : Array|Object|String)`

```js
var isEven = function(num) { return num % 2 === 0; };

every(isEven, []); // => false
every(isEven, [1, 2]); // => false
every(isEven, [2, 4, 6]); // => true
```

## License

Released under the [MIT license](LICENSE.md).

[ci-link]: https://travis-ci.org/ndhoule/every
[ci-badge]: https://travis-ci.org/ndhoule/every.svg?branch=master

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