tiny-js icon indicating copy to clipboard operation
tiny-js copied to clipboard

Get name of a cloned objects definition

Open zarat opened this issue 2 years ago • 0 comments

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?

zarat avatar Jul 12 '22 12:07 zarat