final class JsDynamicOps extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsDynamicOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def as[T]: T
Short version of
.asInstanceOf
. - def asArray[A]: Array[A]
- def asBoolean: Boolean
- def asDict[A]: Dictionary[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asInt: Int
- def asJSDate: Date
- def asJsAny: Any
- def asJsArray[A <: Object]: Array[A]
- def asJsObj: Object
- def asJsObjSub[A <: Object]: A
- def asOrNull[T]: |[T, Null]
This value could be T or null.
This value could be T or null. This does not check if its undefined.
- def asString: String
- def asUndefOrNull[T]: UndefOr[|[T, Null]]
As potentially T, null or undefined.
As potentially T, null or undefined. The safest cast.
- def combine(that: Dynamic): Dynamic
Shallow combine into existing value.
- def combineGeneric(that: UndefOr[Object]): Dynamic
Combine with general js.Object
- def combineGenericTo[B](that: UndefOr[Object]): B
Combine with general js.Object and cast.
- def combineTo[B](that: Dynamic): B
Combine and cast.
- def duplicate: Dynamic
Duplicate using
js.Object.assign
- def duplicateCombine(that: Dynamic): Dynamic
Duplicate and combine.
- def duplicateCombineTo[B](that: Dynamic): B
Duplicate, combine and cast!
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toNonNullOption[T <: Object]: Option[T]
Null and undefined => None, otherwise Some.
Null and undefined => None, otherwise Some. The safest conversion.
- def toOption[T <: Object]: Option[T]
Uses truthiness to determine None, you may not want this.
- def toString(): String
- Definition Classes
- Any
- def toTruthy: Boolean
Determine if truthy.
Determine if truthy. Very tricky!