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

utils/project
v1.1.0
1.1.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Reasonable analog to SQL `select` statement.

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/project in your project
npm i @bit/bit.ramda.utils.project
Copied

project (props:Array, objs:Array) : Array

Reasonable analog to SQL select statement.

Example

var abby = {name: 'Abby', age: 7, hair: 'blond', grade: 2};
     var fred = {name: 'Fred', age: 12, hair: 'brown', grade: 7};
     var kids = [abby, fred];
     R.project(['name', 'grade'], kids); //=> [{name: 'Abby', grade: 2}, {name: 'Fred', grade: 7}]

Arguments

props: Array

The property names to project

objs: Array

The objects to query

Returns

Array

An array of objects with just the `props` properties.