Closed a15n closed 6 years ago
Oh wait I think this is correct.
Default values will kick in if the value is not present, or explicitly undefined
.
0, null, and false are still considered values
Exactly. That's how I understand it. I think that's how it's portrayed in the new copy I recommend in this PR.
Fixes a typo. ES6 destructuring default values only kick in when the value is
undefined
.This can be viewed as a follow-up to this commit https://github.com/wesbos/es6-articles/commit/b3c018f2806fb2f921aef7ee99eefa458d5d4484