StObjectOps

@inline final class StObjectOps[Self <: StObject](val x: Self) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

@inline
def combineWith[Other <: Any](other: Other): Self & Other

Make a copy of this object with all the members from other (the latter takes preference).

Make a copy of this object with all the members from other (the latter takes preference).

Corresponds to:

const foo = {...bar}

Note that it's meant to be used with "plain" objects, some notion of class-ness may be lost

@inline
def duplicate: Self

Make a copy of this object.

Make a copy of this object.

Corresponds to:

const foo = {...bar}

Note that it's meant to be used with "plain" objects, some notion of class-ness may be lost

@inline
def set(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.

Concrete fields

val x: Self