getKeyValue
Get the value of a named property on a MapLike object.
getKeyValue(obj, key)
Retrieve the property on Map-like obj
identified by the String or Symbol value key
. The default behavior
can be overridden on obj
by implementing @@can.getKeyValue,
otherwise native named property access is used.
var foo = new DefineMap({ bar: "baz" });
canReflect.getKeyValue(foo, "bar"); // -> "baz"
Parameters
- obj
{Object}
:the object to get from
- key
{String}
:the key of the property to get