DEV Community

loading...

Discussion on: Logical OR (||) vs Nullish Coalescing Operator (??) in JavaScript

Collapse
hrdyjan1 profile image
hrdyjan1

There should be probably "limit" only, no "options/options.limit".

Collapse
palcisto profile image
Patrick Alcisto

Nice article but, @ hrdyjan1 is right, your example implies it expects an object with a possible limit property, yet you never pass the limit as part of an object in the three invocations.