object Symbol extends Object
ECMAScript 6 Factory for js.Symbols and well-known symbols.
- Grouped
- Alphabetic
- By Inheritance
- Symbol
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(description: String): Symbol
Creates a new unique symbol with the specified description.
-
def
apply(): Symbol
Creates a new unique symbol without description.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forKey(key: String): Symbol
Retrieves the symbol with the specified key in the global symbol registry.
Retrieves the symbol with the specified key in the global symbol registry.
The returned symbol's description is also the key.
Asking twice
forKey
with the same key returns the same symbol, globally.- Annotations
- @JSName( name = "for" )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
hasInstance: Symbol
The well-known symbol
@@hasInstance
. -
def
hasOwnProperty(v: String): Boolean
Tests whether this object has the specified property as a direct property.
Tests whether this object has the specified property as a direct property.
Unlike js.Object.hasProperty, this method does not check down the object's prototype chain.
MDN
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
isConcatSpreadable: Symbol
The well-known symbol
@@isConcatSpreadable
. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
Tests whether this object is in the prototype chain of another object.
Tests whether this object is in the prototype chain of another object.
- Definition Classes
- Object
-
val
iterator: Symbol
The well-known symbol
@@iterator
. -
def
keyFor(sym: Symbol): UndefOr[String]
Retrieves the key under which the specified symbol is registered in the global symbol registry, or
undefined
if it is not registered. -
val
match: Symbol
The well-known symbol
@@match
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
propertyIsEnumerable(v: String): Boolean
Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.
Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.
If the object does not have the specified property, this method returns false.
MDN
- Definition Classes
- Object
-
val
replace: Symbol
The well-known symbol
@@replace
. -
val
search: Symbol
The well-known symbol
@@search
. -
val
species: Symbol
The well-known symbol
@@species
. -
val
split: Symbol
The well-known symbol
@@split
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
val
toPrimitive: Symbol
The well-known symbol
@@toPrimitive
. -
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
toStringTag: Symbol
The well-known symbol
@@toStringTag
. -
val
unscopables: Symbol
The well-known symbol
@@unscopables
. -
def
valueOf(): scala.Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )