m7e
, short for "map" plus "reduce," is a collection of utility functions that
map and reduce JavaScript primitives and built-ins between each other.
For example:
-
Mapping the boolean
true
to a string would be'true'
. -
Reducing the entries
[['key', 'value']]
to a record would be{ key: 'value' }
.
Input | Output |
---|---|
entries | Record ({} ) |
Map |
entries |
Map |
Record ({} ) |
Input | Output |
---|---|
entries | Record ({} ) |