I'm pushing some anonymous functions into an array this way:
myArray.push(function(){ /* some cool code here */});
myArray.push(function(){ /* some cooler code here */});
Then I execute all functions doing
while (myArray.length) { myArray.shift().call();}
The question is: how can I check if a function is already into myArray? I Tried to do a comparison using toSource() but it does not work... Any idea?
Thanks in advance.
myArray.