Adds the logical assignment operators ||=, &&=, and ??= to JavaScript.

Motivation

This rounds out the compound assignment operators to also include logical binary operators. Currently only mathematical and bitwise binary operators are supported. This is an incremental improvement for shipping terser, clearer JS.

Documentation

Specification

Specification link


Specification being incubated in a Community Group

Status in Chromium

Blink>JavaScript


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Search tags

logical assignment,

Last updated on 2021-01-24