Returns the elements of this Js.Value, fails if it is not a Js.Arr
Returns the Boolean
value of this Js.Value, fails if it is not
a Js.Bool
Returns the Double
value of this Js.Value, fails if it is not
a Js.Num
Returns the key/value map of this Js.Value, fails if it is not a Js.Obj
Returns the String
value of this Js.Value, fails if it is not
a Js.Str
Update a value in-place.
Update a value in-place. Takes an Int
or a String
, through the
implicitly-constructe Js.Selector type.
We cannot just overload update
on s: Int
and s: String
because
of type inference problems in Scala 2.11.