JsValue
One value from an engine. It costs nothing at runtime: the wrapper disappears and only the value itself is passed around.
A number, a string, a boolean, a BigInt, null or undefined is a copy, the same whichever engine it came from, and works anywhere, even after its engine is closed. A symbol, an object, an array or a function is a handle into the engine that made it, and works only while that engine is open and only on its thread.
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
True when this value is thenable, which is what await looks for: an object, an array or a function whose then is callable. Reading then can run a getter, so for those this needs the value's engine open and on this thread, and a getter that throws reaches you as a JsError. Every other value answers false without touching an engine.
Functions
An exact signed 64-bit integer. A BigInt is checked directly; other values undergo numeric primitive conversion first. Fractions, NaN, infinities and values outside the Long range throw a JsError named RangeError. Negative zero becomes zero. Unlike asInt, this never wraps, truncates or saturates. A Number already rounded by JavaScript keeps that represented value; use BigInt when the original integer must retain all its digits.
A plain Kotlin value, all the way down: Map for an object, List for an array, ByteArray for an ArrayBuffer, a typed array or a DataView, Double, String, Boolean, KBigInt, or null. A function stays a JsFunction and a symbol a JsSymbol, since they have no Kotlin twin, and an object that closes a cycle stays the JsObject it is.