# @andreseloysv/filtermap

> FilterMap

Latest version **1.0.5** (published 2023-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @andreseloysv/filtermap
pnpm add @andreseloysv/filtermap
yarn add @andreseloysv/filtermap
bun add @andreseloysv/filtermap
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-11-24 |
| First published | 2023-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | andreseloysv@gmail.com |
| Maintainers | andreseloysv |

## Links

- npm: https://www.npmjs.com/package/@andreseloysv/filtermap
- Repository: https://github.com/andreseloysv/filterMap
- Homepage: https://github.com/andreseloysv/filterMap#readme
- Issues: https://github.com/andreseloysv/filterMap/issues
- npm.io page: https://npm.io/package/@andreseloysv/filtermap

## Recent versions

- 1.0.5 (latest) — 2023-11-24
- 1.0.4 — 2023-11-23
- 1.0.3 — 2023-11-23
- 1.0.2 — 2023-11-23
- 1.0.1 — 2023-11-23
- 1.0.0 — 2023-11-23

## README

# filterMap

Transforms an array of elements into a new array of elements based on specified filter and mapping functions.

## Installation

```bash
npm install @andreseloysv/filtermap
```

## Usage

Javascript
```javascript
const filterMap = require('@andreseloysv/filtermap')

// Example usage:
const numbers = [1, 2, undefined, 3];
const result = filterAndMap(numbers, x => x < 3, x => `Number: ${x}`);
// result will be ['Number: 1', 'Number: 2']
```

Typescript
```typescript
import { filterMap } from '@andreseloysv/filtermap';

const numbers = [1, 2, undefined, 3];
const result = filterAndMap(numbers, x => x < 3, x => `Number: ${x}`);
// result will be ['Number: 1', 'Number: 2']
```

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