Closed chitgoks closed 5 years ago
is this possible using 1 inline code?
e.g.
1, 4, -8, 2, -1, 6
result
1, 2, 4, 6, -1, -8
_.partition([1, 4, -8, 2, -1, 6].sort(), (n) => { return n > 0 }).join() Is this "inline" enough?
_.partition([1, 4, -8, 2, -1, 6].sort(), (n) => { return n > 0 }).join()
looks good thank you
is this possible using 1 inline code?
e.g.
1, 4, -8, 2, -1, 6
result
1, 2, 4, 6, -1, -8