Open this example in the interactive library
Source code
console.log([false, 0, null].map((value) => value ?? "missing"));
Sample output
[ false, 0, 'missing' ]

Keep false and zero with nullish defaults in JavaScript.
Open this example in the interactive library
console.log([false, 0, null].map((value) => value ?? "missing"));
[ false, 0, 'missing' ]