final class JsAnyOps[T <: Any] extends AnyOps[T]
- Alphabetic
- By Inheritance
- JsAnyOps
- AnyOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JsAnyOps(a: T)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val a: T
- def as[T]: T
.asInstanceOf[T]
but shorter..asInstanceOf[T]
but shorter. Very dangerous!- Definition Classes
- AnyOps
- def asBoolean: Boolean
- Definition Classes
- AnyOps
- def asDouble: Double
- Definition Classes
- AnyOps
- def asDyn: Dynamic
- Definition Classes
- AnyOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asInt: Int
- Definition Classes
- AnyOps
- def asJsAny: Any
If T is js.Any, this may be redundent.
If T is js.Any, this may be redundent.
- Definition Classes
- AnyOps
- def asJsArray[A]: Array[A]
- Definition Classes
- AnyOps
- def asJsObj: Object
- Definition Classes
- AnyOps
- def asJson: String
- Definition Classes
- AnyOps
- def asNumber: Number
- Definition Classes
- AnyOps
- def asString: String
- Definition Classes
- AnyOps
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filterNull: UndefOr[T]
Internal null values become undefined.
Internal null values become undefined.
- Definition Classes
- AnyOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- 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
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- def toTruthy: Boolean
Equivalent
!!x
for some javascript value x.Equivalent
!!x
for some javascript value x.- Definition Classes
- AnyOps
- 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
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
Example: - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])