What is the process of creating an object that can eliminate itself automatically?
var item = [];
function selfDestruct() {
this.destroy = () => {
this = false;
}
}
function initialization() {
item[0] = new SelfDestruct();
item[0].destroy();
}
initialization();