3 ms·
I actually do prefer this too. And when using it for arrays, I'd prefer const r = [a, b, c] .map((e) => 2 * e*e) .filter((e) =
by ReleaseCandidat 5y ago
I actually do prefer this too.
And when using it for arrays, I'd prefer
const r = [a, b, c]
.map((e) => 2 * e*e)
.filter((e) => e >= 0)
.reduce((acc, e) => acc + e)
to the new piped version.