Three JavaScript Array Hacks
Hassan Ali
925

This is just my personal opinion, but about the tip #2 I think that using the ES6 method could be hard to follow.

Using the null parameter I can notice when a function is using an empty parameter without too much effort. With your suggestion and in a file with hundreds of lines (or even after a few hours of coding), it could be a mess to find out that “oh, this function has an empty parameter”.

Show your support

Clapping shows how much you appreciated Fran Verona’s story.