JsValue
One value from the engine. It costs nothing at runtime: the wrapper disappears and only the value itself is passed around.
The asX readers coerce the way JavaScript does, so asString() on the number 5 gives "5", the same answer String(5) gives in a script. Use type first when you need the exact kind.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A plain Kotlin value, all the way down: Map for an object, List for an array, Double, String, Boolean, or null. A function stays a JsFunction, since it has no Kotlin twin.