can.getName
Returns a human-readable name of an object
@@can.getName()
The @@can.getName
symbol points to a function that returns human-readable name of the object. Depending on the context this name could be decorated with extra information, like the cid
of a given instance.
var foo = function() {};
foo[canSymbol.for('can.getName')] = function() {
return "MyFooFunction";
};
obj[canSymbol.for('can.getName')]() //-> "MyFooFunction"
Returns
{String}
:
The name of the object/function