coalesce
Returns the first defined, non-null argument.
- Use
Array.prototype.find()
andArray.prototype.includes()
to find the first value that is not equal toundefined
ornull
.
Returns the first defined, non-null argument.
Array.prototype.find()
and Array.prototype.includes()
to find the first value that is not equal to undefined
or null
.