UNPKG
map-values
Version:
latest (1.0.1)
1.0.1
1.0.0
Map object values returning a new object
github.com/parshap/js-map-values
map-values
/
README.md
18 lines
(14 loc)
•
238 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# map-values
Map
object
values returning a
new
object
.
# Example
```js
var
map =
require
(
"map-values"
);
map
({
foo
:
2
}, function(val, key, obj) {
return
val *
2
; });
// -> { foo: 4 }
```
# Installation
``` npm install map-values ```