UNPKG
recompact
Version:
latest (3.4.0)
3.4.0
3.3.0
3.2.1
3.2.0
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.3.2
2.3.1
2.3.0
2.2.4
2.2.2
2.2.1
2.2.0
1.1.0
1.0.2
1.0.1
1.0.0
0.0.0
A set of React high order components based on Rx.
github.com/neoziro/recompact
neoziro/recompact
recompact
/
utils
/
mapValues.js
10 lines
(8 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
exports
.
__esModule
=
true
;
exports
.
default
=
function
(
obj, fn
) {
return
Object
.
keys
(obj).
reduce
(
function
(
result, key
) { result[key] =
fn
(obj[key], key);
// eslint-disable-line no-param-reassign
return
result; }, {}); };