get

fun get(target: Any, propertyKey: PropertyKey): Any?(source)

Gets the property of target, equivalent to target[propertyKey] when receiver === target.

Parameters

target

Object that contains the property on itself or in its prototype chain.

propertyKey

The property name.