c

jshelpers

JsDynamicOps

final class JsDynamicOps extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsDynamicOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsDynamicOps(jsdyn: Dynamic)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. def as[T]: T

    Short version of .asInstanceOf.

  5. def asArray[A]: Array[A]
  6. def asBoolean: Boolean
  7. def asDict[A]: Dictionary[A]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asInt: Int
  10. def asJSDate: Date
  11. def asJsAny: Any
  12. def asJsArray[A <: Object]: Array[A]
  13. def asJsObj: Object
  14. def asJsObjSub[A <: Object]: A
  15. 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.

  16. def asString: String
  17. def asUndefOrNull[T]: UndefOr[|[T, Null]]

    As potentially T, null or undefined.

    As potentially T, null or undefined. The safest cast.

  18. def combine(that: Dynamic): Dynamic

    Shallow combine into existing value.

  19. def combineGeneric(that: UndefOr[Object]): Dynamic

    Combine with general js.Object

  20. def combineGenericTo[B](that: UndefOr[Object]): B

    Combine with general js.Object and cast.

  21. def combineTo[B](that: Dynamic): B

    Combine and cast.

  22. def duplicate: Dynamic

    Duplicate using js.Object.assign

  23. def duplicateCombine(that: Dynamic): Dynamic

    Duplicate and combine.

  24. def duplicateCombineTo[B](that: Dynamic): B

    Duplicate, combine and cast!

  25. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def toNonNullOption[T <: Object]: Option[T]

    Null and undefined => None, otherwise Some.

    Null and undefined => None, otherwise Some. The safest conversion.

  28. def toOption[T <: Object]: Option[T]

    Uses truthiness to determine None, you may not want this.

  29. def toString(): String
    Definition Classes
    Any
  30. def toTruthy: Boolean

    Determine if truthy.

    Determine if truthy. Very tricky!

Inherited from AnyVal

Inherited from Any

Ungrouped