News for hackers. Stuff that matters.
Re:Magical, Mystical JavaScript Transducers by mbostock on Saturday June 29, 2019 @09:53AM (#20312572)
I know this is cheating and missing the point, but using d3-array:

d3.mean(victorianSlang, d => d.popularity)

This implicitly ignores invalid values (null, NaN or undefined) after coercing to a number.

There are no comments on this comment yet.