← Back to release summary

Ergonomic brand checks for private fields

Category
JavaScript
Type
Chromium catches up
Status
Enabled by default (Chrome 91)
Intent stage
Start prototyping

Summary

This JavaScript feature adds the capability for testing the existence of a private field in an object: "#foo in obj" Proposal: https://github.com/tc39/proposal-private-fields-in-in The feature has reached Stage 3 in TC39.

Motivation

See proposal https://github.com/tc39/proposal-private-fields-in-in for motivating examples.

Standards & signals

View on chromestatus.com