5 ms·
I work with a 100% CS code base and lodash chains are a dream working in CS as opposed to vanilla JS, something like: capitalStringsWithX = _.chain array
by syntheticcdo 9y ago
I work with a 100% CS code base and lodash chains are a dream working in CS as opposed to vanilla JS, something like:
capitalStringsWithX = _.chain array
.map (item) -> item.toUpperCase()
.filter (item) -> item.includes "X"
.value()
as opposed to:
var capitalStringsWithX = _.chain(array)
.map(function(item) { return item.toUpperCase(); })
.filter(function(item) { return item.includes("X"); })
.value();