How to use the get function from underscore
Find comprehensive JavaScript underscore.get code examples handpicked from public code repositorys.
30 31 32 33 34 35 36 37 38 39
return arr .filter(buy => get(buy, sortKey)) .sort((a, b) => { // console.log({ // b: get(b, sortKey), // a: get(a, sortKey) // }) return get(b, sortKey) - get(a, sortKey); }) .slice(0, num)
0
0
0
+ 27 other calls in file
underscore.keys is the most popular function in underscore (11266 examples)