evaluate

suspend fun <T> evaluate(script: String): T(source)

Evaluate arbitrary JavaScript code and get the result as a primitive type (e.g., String, Int).

Since

extensions-lib 14

Return

Result of JavaScript code as a primitive type.

Parameters

script

JavaScript to execute.