6 ms·
Filter and then map will iterate the list twice. JS really needs some iterator-based methods like Lodash where it will only go through the list once in this cas
by hajile 5y ago
Filter and then map will iterate the list twice. JS really needs some iterator-based methods like Lodash where it will only go through the list once in this case.