Open nexushoratio opened 9 months ago
It turns out that Array.from() takes a mapping function, so we should use that and remove the unnecessary intermediate array.
Array.from()
Alas, we cannot do similar for filter().
It turns out that
Array.from()
takes a mapping function, so we should use that and remove the unnecessary intermediate array.Alas, we cannot do similar for filter().