kotlin.js.Json.get

get

abstract operator fun get(propertyName: String): Any?

Platform and version requirements: JS

Calls to the function will be translated to indexing operation (square brackets) on the receiver with propertyName as the argument.

E.g. for next code:

fun test(j: Json, p: String) = j["prop"] + j.get(p)

will be generated:

function