Static variables
staticread onlyhasInstance:Symbol
A method determining if a constructor object recognizes an object as its instance. Used by instanceof.
staticread onlyisConcatSpreadable:Symbol
A Boolean value indicating if an object should be flattened to its array elements. Used by Array.prototype.concat().
staticread onlymatch:Symbol
A method that matches against a string, also used to determine if an object may be used as a regular expression. Used by String.prototype.match().
staticread onlyreplace:Symbol
A method that replaces matched substrings of a string. Used by String.prototype.replace().
staticread onlysearch:Symbol
A method that returns the index within a string that matches the regular expression. Used by String.prototype.search().
staticread onlysplit:Symbol
A method that splits a string at the indices that match a regular expression. Used by String.prototype.split().
staticread onlytoStringTag:Symbol
A string value used for the default description of an object. Used by Object.prototype.toString().
staticread onlyunscopables:Symbol
An object value of whose own and inherited property names are excluded from the with environment bindings of the associated object.
Static methods
staticfor_(key:String):Symbol
The Symbol.for(key) method searches for existing symbols in a runtime-wide symbol registry with the given key and returns it if found. Otherwise a new symbol gets created in the global symbol registry with this key.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for
Constructor
new(?description:String)
To create a new primitive symbol, use new Symbol()
with an optional string as its description
.
NOTE: Unlike in plain JavaScript, new Symbol()
syntax is used in Haxe. This generates a Symbol(...)
expression as required by the JavaScript specification.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol