If I have a clone of an element and the real version of the element, how can I check whether one is the real version or a clone? Example below:
HTML
<div id = "example">yay! I'm a random element</div>
JS
let real = document.getElementById("example");
let clone = real.cloneNode(true);
// It's obvious that the "real" variable is the real one,
// and "clone" is the clone, but I just need a way to check.
if (clone.methodToCheckIfItsAClone) {
alert("clone");
} else {
alert("not clone");
}
Is there a method or at least any way for me to check if the element is a clone?