c

jshelpers

JsAnyOps

final class JsAnyOps[T <: Any] extends AnyOps[T]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsAnyOps
  2. AnyOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsAnyOps(a: T)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val a: T
    Attributes
    protected
    Definition Classes
    JsAnyOpsAnyOps
  5. def as[T]: T

    .asInstanceOf[T] but shorter.

    .asInstanceOf[T] but shorter. Very dangerous!

    Definition Classes
    AnyOps
  6. def asBoolean: Boolean
    Definition Classes
    AnyOps
  7. def asDouble: Double
    Definition Classes
    AnyOps
  8. def asDyn: Dynamic
    Definition Classes
    AnyOps
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def asInt: Int
    Definition Classes
    AnyOps
  11. def asJsAny: Any

    If T is js.Any, this may be redundent.

    If T is js.Any, this may be redundent.

    Definition Classes
    AnyOps
  12. def asJsArray[A]: Array[A]
    Definition Classes
    AnyOps
  13. def asJsObj: Object
    Definition Classes
    AnyOps
  14. def asJson: String
    Definition Classes
    AnyOps
  15. def asNumber: Number
    Definition Classes
    AnyOps
  16. def asString: String
    Definition Classes
    AnyOps
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def filterNull: UndefOr[T]

    Internal null values become undefined.

    Internal null values become undefined.

    Definition Classes
    AnyOps
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toNonNullOption: Option[T]

    If value is null or undefined be None, else Some.

    If value is null or undefined be None, else Some.

    Definition Classes
    AnyOps
  29. def toNonNullUndefOr: UndefOr[T]

    If value is null or undefined be undefined, otherwise defined.

    If value is null or undefined be undefined, otherwise defined. Could be called "filterNull".

    Definition Classes
    AnyOps
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def toStringJs: String

    Call the toString method after casting to js.Any.

    Call the toString method after casting to js.Any. Not sure casting makes any difference though.

    Definition Classes
    AnyOps
  32. def toTruthy: Boolean

    Equivalent !!x for some javascript value x.

    Equivalent !!x for some javascript value x.

    Definition Classes
    AnyOps
  33. def toTruthyUndefOr: UndefOr[T]

    Wow, a mouthful! If its a javascript truthy=true, its defined, otherwise undef.

    Wow, a mouthful! If its a javascript truthy=true, its defined, otherwise undef. Takes into account 0, "" and [] javascript idioms i.e. takes into account the FP zero.

    Definition Classes
    AnyOps
    Example:
    1. val s = "" // s.toTruthyUndefOr[String] => js.undefined
      val s = "blah" // s.toTurthyUndefOr[String] => defined "blah"
      val n = 0  // n.toTruthyUndefOr[Int] => js.undefined
      val n1 = 1 // n1.toTruthyUndefOr[Int] => defined 1
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyOps[T]

Inherited from AnyRef

Inherited from Any

Ungrouped