This is quite absurd.

1. I think undefined and null are just opinionated and they have different use cases anyways, because you can hardly get null out of javascript itself. It needs to be set from you. They are just different.

2. If you don't know reduce or reduceRight, there's a low chance that you are a practical, experienced developer.

3.const [, , foo] = parts and const [foo] = parts are just different. The first expression gets the third element from the array, while the second expression gets the first element out of the array. I am lost as to your intention on what you are trying to say here.

4. I stopped reading then.

Code stuffs, mostly related to React, Typescript, and Node. located@Seoul. https://9oelm.github.io.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store