# @mathieuprog/find-value

> Similar to Array.find(), but returns the value of the function invocation instead of the element itself

Latest version **1.0.1** (published 2023-03-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @mathieuprog/find-value
pnpm add @mathieuprog/find-value
yarn add @mathieuprog/find-value
bun add @mathieuprog/find-value
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-03-12 |
| First published | 2023-03-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mathieu Decaffmeyer |
| Maintainers | mathieuprog |

## Links

- npm: https://www.npmjs.com/package/@mathieuprog/find-value
- Repository: https://github.com/mathieuprog/find-value
- Homepage: https://github.com/mathieuprog/find-value#readme
- Issues: https://github.com/mathieuprog/find-value/issues
- Funding: https://github.com/mathieuprog/find-value?sponsor=1
- npm.io page: https://npm.io/package/@mathieuprog/find-value

## Recent versions

- 1.0.1 (latest) — 2023-03-12
- 1.0.0 — 2023-03-12

## README

# find-value

Similar to Array.find(), but returns the value of the function invocation instead of the element itself

```typescript
import findValue from '@mathieuprog/find-value';

findValue([1, 2, 3], (n) => n > 2 && n * 2) // 6
findValue([1, 2, 3], (n) => n > 3 && n * 2) // undefined
```

## Install

You can get `@mathieuprog/find-value` via [npm](http://npmjs.com).

```
npm i @mathieuprog/find-value
```

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