JsLanguageLevel
Enumerates supported JavaScript language levels.
Content copied to clipboard
elide.meta.JsLanguageLevel
Properties
Link copied to clipboard
The language level is ES2017.
Content copied to clipboard
ES2017 = 3;
Link copied to clipboard
The language level is ES2018.
Content copied to clipboard
ES2018 = 4;
Link copied to clipboard
The language level is ES2019.
Content copied to clipboard
ES2019 = 5;
Link copied to clipboard
The language level is ES2020.
Content copied to clipboard
ES2020 = 6;
Link copied to clipboard
The language level is ES2021.
Content copied to clipboard
ES2021 = 7;
Link copied to clipboard
The language level is ES2022.
Content copied to clipboard
ES2022 = 8;
Link copied to clipboard
The language level is unknown or unspecified; regular code should not use this value.
Content copied to clipboard
JS_LANGUAGE_LEVEL_DEFAULT = 0;
Link copied to clipboard
Use latest language level, stability be damned.
Content copied to clipboard
LATEST = 99;
Link copied to clipboard
Use latest supported language level.
Content copied to clipboard
STABLE = 98;
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.