Closed bertyhell closed 1 year ago
Proposals can only be added by TC39 members; please see https://github.com/tc39/ecma262/blob/HEAD/CONTRIBUTING.md#new-feature-proposals for more information.
ok, i made a discussion topic here: https://es.discourse.group/t/object-nullish-coalescing-operator/1564
Proposal for Object property nullish coalescing operator
This proposal shows a new syntax for assigning properties to an object literal but only if the object is not falsy/null or undefined.
Short example: