Eomm / proposal-object-literal-coalescing-assignment

A proposal to introduce new assignment forms for ECMAScript object literals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proposal-object-literal-coalescing-assignment

A proposal to introduce new assignment forms for ECMAScript object literals

const obj = {
  a: undefined,
  b?: undefined
}

Object.hasOwn(obj, 'a') // true
Object.hasOwn(obj, 'b') // false

About

A proposal to introduce new assignment forms for ECMAScript object literals

License:MIT License


Languages

Language:JavaScript 100.0%