Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

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]

License

ISC