Interface SymbolConstructor
asyncIterator: typeof asyncIterator;
hasInstance: typeof hasInstance;
isConcatSpreadable: typeof isConcatSpreadable;
iterator: typeof iterator;
match: typeof match;
matchAll: typeof matchAll;
prototype: Symbol;
replace: typeof replace;
search: typeof search;
species: typeof species;
split: typeof split;
toPrimitive: typeof toPrimitive;
toStringTag: typeof toStringTag;
unscopables: typeof unscopables;
for(key: string): symbol;
keyFor(sym: symbol): string;
(description?: string | number): symbol;
}
Index
Properties
Readonly
asyncIterator
A method that returns the default async iterator for an object. Called by the semantics of the for-await-of statement.
Readonly
hasInstance
A method that determines if a constructor object recognizes an object as one of the constructor’s instances. Called by the semantics of the instanceof operator.
Readonly
isConcatSpreadable
A Boolean value that if true indicates that an object should flatten to its array elements by Array.prototype.concat.
Readonly
iterator
A method that returns the default iterator for an object. Called by the semantics of the for-of statement.
Readonly
match
A regular expression method that matches the regular expression against a string. Called by the String.prototype.match method.
Readonly
matchAll
A regular expression method that matches the regular expression against a string. Called by the String.prototype.matchAll method.
Readonly
prototype
A reference to the prototype.
Readonly
replace
A regular expression method that replaces matched substrings of a string. Called by the String.prototype.replace method.
Readonly
search
A regular expression method that returns the index within a string that matches the regular expression. Called by the String.prototype.search method.
Readonly
species
A function valued property that is the constructor function that is used to create derived objects.
Readonly
split
A regular expression method that splits a string at the indices that match the regular expression. Called by the String.prototype.split method.
Readonly
toPrimitive
A method that converts an object to a corresponding primitive value. Called by the ToPrimitive abstract operation.
Readonly
toStringTag
A String value that is used in the creation of the default string description of an object. Called by the built-in method Object.prototype.toString.
Readonly
unscopables
An Object whose truthy properties are properties that are excluded from the 'with' environment bindings of the associated objects.
Returns a new unique Symbol value.