invoke

expect operator fun invoke(code: String, params: Map<String, Any?>): Any?

Executes a fragment of code in JavaScript when available is true.

The params define the local variables that will be available and their values. The code is executed inside a function(key1, key2...) { } block, thus, you can add a return statement inside to return a value.

If available is false, this function will throw an exception.

actual operator fun invoke(code: String, params: Map<String, Any?>): Any?
actual operator fun invoke(code: String, params: Map<String, Any?>): Any?
actual operator fun invoke(code: String, params: Map<String, Any?>): Any?