# @f/map-values

> Map the values of an object to an array

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

## Install

```sh
npm install @f/map-values
pnpm add @f/map-values
yarn add @f/map-values
bun add @f/map-values
```

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

## Links

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

## Recent versions

- 1.0.0 (latest) — 2016-05-11

## README

# map-values

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

Map the values of an object to an array.

*Note: This is the opposite meaning of mapValues that lodash uses*

## Installation

    $ npm install @f/map-values

## Usage

```js
var mapValues = require('@f/map-values')

mapValues(add1, {a: 1, b: 2, c: 3}) // -> [2, 3, 4]

function add1 (n) {
  return n + 1
}

```

## API

### mapValues(fn, obj)

- `fn` - `fn(val, key) -> newVal`. Receives `val` and `key`, and returns a new value to be put in the resulting array.
- `obj` - The object who's values to map

**Returns:** An array containing the result of calling `fn` on each value and key within `obj`.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/map-values.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/map-values
[git-image]: https://img.shields.io/github/tag/micro-js/map-values.svg?style=flat-square
[git-url]: https://github.com/micro-js/map-values
[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/map-values.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/map-values

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