Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maroshii
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
maroshii
11y ago
One of the advantages of underscore (and lodash) is that you can iterate over arrays AND objects indistinctly in most cases. How would you do: var a1b2 = _.reduceRight({a:1,b:2},(memo,val,key) => key+val+memo,''); or: