StObject

object StObject
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

@inline
final class StObjectCast1Ops[Self <: ([_] =>> StObject), T1](val x: Self[T1]) extends AnyVal
@inline
final class StObjectCast2Ops[Self <: ([_, _] =>> StObject), T1, T2](val x: Self[T1, T2]) extends AnyVal
@inline
final class StObjectCast3Ops[Self <: ([_, _, _] =>> StObject), T1, T2, T3](val x: Self[T1, T2, T3]) extends AnyVal
@inline
final class StObjectOps[Self <: StObject](val x: Self) extends AnyVal

Value members

Concrete methods

@inline
def apply(): StObject

Create a new empty object

Create a new empty object

@inline
def set[Self <: Any](x: Self, key: String, value: Any): Self

Mutate the current object and set an arbitrary member on it.

Mutate the current object and set an arbitrary member on it.

This is after all allowed in Javascript, and in ScalablyTyped it forms the basis of the mutable builder encoding.