3 ms·
You can now! The iterator helpers proposal is stage 3 and shipping in Chrome. (new Set([0, 1, 2])).values().map(x => x + 1).toArray() You can also reduce, f
by bakkoting 3y ago
You can now! The iterator helpers proposal is stage 3 and shipping in Chrome.
(new Set([0, 1, 2])).values().map(x => x + 1).toArray()
You can also reduce, filter, find, etc.