0
JS Class Objects
So I may be over thinking this but is there an easy way to store or access all the âNewâ Class Objects created. Iâd like to store it in another object or something of the sort. Iâm just looking for an easy way to iterate through Class Objects and the data within those objects if anyone can help with that. Iâve tried creating another object to try the push() Method but I get an undefined error on those class objects Iâve created. Thanks in advance.
4 Answers
0
Thanks for the help. I actually ended up using another object like this
var myObject = {
Obj1: new ClassâŠ..
}
Im sure an array will work in pretty much the same way. I just like using dot notation better in my particular case. I have alot of different named properties and to me its just a bit easier naming it than saying [0].