ramped.make_array
v0.2.0
Published
Build items in an array from functions applied to a single input.
Downloads
2
Readme
Ramped make array
Build items in an array from functions applied to a single input.
This is the same as Ramda juxt.
Install
To add as a dependency to a Node.js project:
npm i ramped.make_array --save
Usage
make_array = require('ramped.make_array')
convert = make_array([
R.prop('a'),
R.prop('b')
])
new_array = convert({a: 1, b: 2})
// [1, 2]