Hacker News new | ask | show | jobs
by TimothyBJacobs 1550 days ago
A common API is something like lodash's `partition` so you don't have to loop over the same Array multiple times: https://lodash.com/docs/#partition