2 ms·
My issue is for things like select you would want to take you path first then your data last, this let's you build functions like const selectFoo= select(['foo
by vorticalbox 4y ago
My issue is for things like select you would want to take you path first then your data last, this let's you build functions like
const selectFoo= select(['foo']);
selectFoo({foo:'bar'})
But also then allows these functions to be used in pipes
const upperFoo = pipe(
selectFoo,
toUpper
)
This is how the ramda library does it[0]
[0] https://github.com/ramda/ramda https://github.com/ramda/ramda