3 ms·
What I like about your example is that it's way better at communicating intent than the other C++ examples. In JS I would probably use numbers.some(number
by Zababa 5y ago
What I like about your example is that it's way better at communicating intent than the other C++ examples. In JS I would probably use
numbers.some(number => (number % 2) === 1)
I feel like the other C++ examples given are noisy.