I'm trying to add an element to an array only if it doesn't already exist in the array. I used to do this with the Array.include method of mootools, but now I'm using jquery.
Is there a method to do this in jquery?
I'm trying to add an element to an array only if it doesn't already exist in the array. I used to do this with the Array.include method of mootools, but now I'm using jquery.
Is there a method to do this in jquery?
Removing my stupid answer...
As a general rule, I recommend using jQuery Documentation and jQuery API browser