# @f/find

> Lookup an element in a list using a predicate

Latest version **1.0.0** (published 2016-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/find
pnpm add @f/find
yarn add @f/find
bun add @f/find
```

## 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 | 1.0.0 |
| Published | 2016-10-10 |
| First published | 2016-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/find
- Repository: https://github.com/micro-js/find
- Homepage: https://github.com/micro-js/find#readme
- Issues: https://github.com/micro-js/find/issues
- npm.io page: https://npm.io/package/@f/find

## Recent versions

- 1.0.0 (latest) — 2016-10-10

## README

# find

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Lookup an element in a list using a predicate

## Installation

    $ npm install @f/find

## Usage

```js
var find = require('@f/find')


find(users, user => user.username === 'micro-js')
```

## API

### find(arr, fn, fromIndex)

- `arr` - The array to search
- `fn` - The predicate to use to search the array (accepts an item in the list and returns `true/false`).
- `fromIndex` - Optional, starting index. Defaults to zero.

**Returns:** Either the first element within `arr` for which `fn` returns true, or `null` if none is found.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/find.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/find
[git-image]: https://img.shields.io/github/tag/micro-js/find.svg?style=flat-square
[git-url]: https://github.com/micro-js/find
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/find.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/find

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