3 ms·
I'd like to see Immutable.js & Ramda collaborate, more on this here https://github.com/ramda/ramda/issues/1367 https://github.com/ramda/ramda/issues/1367. // F
by personomas 11y ago
I'd like to see Immutable.js & Ramda collaborate, more on this here https://github.com/ramda/ramda/issues/1367 https://github.com/ramda/ramda/issues/1367.
// For example, something like this (which was taken from the github link above):
var plainPeople = [{name: "DALE"}, {name: "AmY"}];
var immutablePeople = immutable.fromJS(plainPeople);
R.map(lowerCaseName, plainPeople) // [{name: "dale"}, {name: "amy"}]
R.map(lowerCaseName, immutablePeople)) // immutable.List([immutable.Map({name: "dale"}), immutable.Map({name: "amy"})])