getValue
Get the value of an object with a gettable value
getValue(obj)
Return the value of the Value-like object obj
. Unless obj
implements
@@can.getValue, the result of getValue
on
obj
will always be obj
. Observable Map-like objects may want to implement
@@can.getValue
to return non-observable or plain representations of themselves.
var compute = canCompute("foo");
var primitive = "bar";
canReflect.getValue(compute); // -> "foo"
canReflect.getValue(primitive); // -> "bar"
Parameters
- obj
{Object}
:the object to get from
Returns
{*}
:
the value of the object via @@can.getValue
, or the value itself.