I know it’s not always an option, but I think it’s well worth the overhead to just use lodash.
Nick Ford
1

I agree. Thanks for sharing the Lodash solution to the problem :)

As I wrote I use one of my own libraries which works very similarly to Lodash and I end up using a very similar syntax to your example :)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.