I need to access the values of every instance of a class, and compare them.
So first, I get my properties:
class One {
constructor(){
this.properties = new Properties();
}
}
Then, I need to read every instance that is created (in any number) and use them as arguments:
class Two {
check(){
if (/* arguments that contain info on all instances of class One */) {
// code
}
}
}
Then I need to create instances of class Two, and call the check() function.