tiny-js
tiny-js copied to clipboard
Get name of a cloned objects definition
Is there a way to get the name of an object? For e.g if i create an object like this
var myBaseObject = {
name: "Test",
value: 3
};
and now i want to get the name of the object myBaseObject
. How can i do that? For e.g i want to write a function to tell me the name of the object
var test = myBaseObject.clone();
var theName = test.getObjectName();
Afterwards the variable theName
should output myBaseObjetct
.
Is that possible?