ramda pluck

node v8.17.0
version: 1.0.0
endpointsharetweet
const R = require("ramda") const shapes = [ { label: 'Fierce Circle', type: 'circle', width: 10, height: 10}, { label: 'Obtuse Square', type: 'square', width: 10, height: 10}, ] const getLabels = R.pluck('label') console.log(getLabels(shapes))
Loading…

no comments

    sign in to comment