how to get all objects of a given type in javascript
Posted
by FenchKiss Dev
on Stack Overflow
See other posts from Stack Overflow
or by FenchKiss Dev
Published on 2010-04-08T19:29:14Z
Indexed on
2010/04/08
19:33 UTC
Read the original article
Hit count: 104
JavaScript
I want to retrieve all objects (not DOM elements) of a given type created with the "new" keyword.
Is it possible ?
function foo(name)
{
this.name = name;
}
var obj = new foo();
How can I retrieve a reference to all the foo objects ?
© Stack Overflow or respective owner