# @devin.argenta/filtermap

> easily filter and map an array

Latest version **1.0.0** (published 2018-03-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @devin.argenta/filtermap
pnpm add @devin.argenta/filtermap
yarn add @devin.argenta/filtermap
bun add @devin.argenta/filtermap
```

## 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 | 2018-03-22 |
| First published | 2018-03-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | devin argenta |
| Maintainers | devin.argenta |
| Keywords | filter, map, filtermap, javascript, array |

## Links

- npm: https://www.npmjs.com/package/@devin.argenta/filtermap
- npm.io page: https://npm.io/package/@devin.argenta/filtermap

## Recent versions

- 1.0.0 (latest) — 2018-03-22

## README

## filtermap

adds .filterMap  to ur array prototype even tho u shouldnt /shrug


to test
npm install
npm run test

`[1,2,3,4].filterMap(callback, conditional, leading)`

leading decides if the conditional should run before or after the callback
true by default

ex: 

```
import 'filtermap'

let x = [1,2,3].filterMap((item) => item * 10, (item) => item >= 2)

console.log(x)
// [4, 6]

let y = [1,2,3].filterMap((item) => item * 10, (item) => item >= 20, false)

console.log(y)
// [20, 30]


```

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