I have a class which creates an object. Ten of these objects are then placed in an array via a for() loop. Within the class is an if() statement defining click movement and whether the user is clicking on an object or empty space:
if (distance < this.properties.radius) {
removeEnabled = true;
this.manageClick();
} else {
removeEnabled = false;
this.properties.alpha = 0;
}
What code would I have to use to discover whether an item within the array has removeEnabled = true or if it has removeEnabled = false? Then perform separate functions for if it is true and or if it is false?