Decorators

- UNOFF

ECMAScript Decorators are an in-progress proposal for extending JavaScript classes. Decorators use a special syntax, prefixed with an @ symbol and placed immediately before the code being extended.

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Edge

  1. 12 - 94: Not supported
  2. 95: Not supported

Firefox

  1. 2 - 92: Not supported
  2. 93: Not supported
  3. 94 - 95: Not supported

Chrome

  1. 4 - 94: Not supported
  2. 95: Not supported
  3. 96 - 98: Not supported

Safari

  1. 3.1 - 14.1: Not supported
  2. 15: Not supported
  3. TP: Not supported

Opera

  1. 9 - 79: Not supported
  2. 80: Not supported

Safari on iOS

  1. 3.2 - 14.8: Not supported
  2. 15: Not supported

Opera Mini

  1. all: Not supported

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 94: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 64: Not supported

Chrome for Android

  1. 94: Not supported

Firefox for Android

  1. 92: Not supported

UC Browser for Android

  1. 12.12: Not supported

Samsung Internet

  1. 4 - 14.0: Not supported
  2. 15.0: Not supported

QQ Browser

  1. 10.4: Not supported

Baidu Browser

  1. 7.12: Not supported

KaiOS Browser

  1. 2.5: Not supported

While not yet supported natively in browsers, decorators are supported by a number of transpiler tools.

Resources:
Babel plug-in for decorators
A minimal guide to JavaScript (ECMAScript) Decorators and Property Descriptor of the Object
JavaScript Decorators: What They Are and When to Use Them
Decorators in TypeScript