`null` and default arguments

Isiah Meadows isiahmeadows at gmail.com
Mon Aug 17 05:18:42 UTC 2015

I know it's a little late for this, but what was the rationale of using
only `undefined` instead of both that and `null` to denote omitted values
for optional arguments in ES6? Before this change, it was a frequent idiom
to check optional arguments via `== null` instead of `=== undefined` and
pass `null` as the argument to denote the absence of a value.

Just a curious question.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150817/e2dda721/attachment.html>

More information about the es-discuss mailing list