nexushoratio / userscripts

Random userscripts for browsers.
GNU General Public License v3.0
2 stars 0 forks source link

Revisit use of `Arrary.from().map()` #247

Open nexushoratio opened 9 months ago

nexushoratio commented 9 months ago

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().