# find-last

> Like Array#find but searches the array backwards.

Latest version **1.0.0** (published 2020-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install find-last
pnpm add find-last
yarn add find-last
bun add find-last
```

## 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 | 2020-08-30 |
| First published | 2020-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Richie Bendall |
| Maintainers | richienb |
| Keywords | array, find, last, method |

## Links

- npm: https://www.npmjs.com/package/find-last
- Repository: https://github.com/Richienb/find-last
- npm.io page: https://npm.io/package/find-last

## Dependencies (1)

- [find-last-index](https://npm.io/package/find-last-index.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2020-08-30
- 0.0.0 — 2020-08-27

## README

# find-last [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/find-last/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/find-last)

Like Array#find but searches the array backwards.

[![NPM Badge](https://nodei.co/npm/find-last.png)](https://npmjs.com/package/find-last)

## Install

```sh
npm install find-last
```

## Usage

```js
const findLast = require("find-last");

findLast(["a", "b", "bba", "cc", "d"], value => value.includes("a"));
//=> "bba"
```

## API

### findLast(array, predicate)

#### array

Type: `array`

The array to search.

#### predicate

Type: `(item, index, array) => boolean`

The predicate function to call on each item.

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