Share your code. Components are building blocks, you are the architect.

utils/props
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Acts as multiple `prop`: array of keys in, array of values out

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/props in your project
npm i @bit/bit.ramda.utils.props
Copied

props (ps:Array, obj:Object) : Array

Acts as multiple prop: array of keys in, array of values out. Preserves order.

Example

R.props(['x', 'y'], {x: 1, y: 2}); //=> [1, 2]
     R.props(['c', 'a', 'b'], {b: 2, a: 1}); //=> [undefined, 1, 2]

     var fullName = R.compose(R.join(' '), R.props(['first', 'last']));
     fullName({last: 'Bullet-Tooth', age: 33, first: 'Tony'}); //=> 'Tony Bullet-Tooth'

Arguments

ps: Array

The property names to fetch

obj: Object

The object to query

Returns

Array

The corresponding values or partially applied function.