I am using jQuery in my web application. I want to use arrays, but I am not able to find out functions for arrays (add, remove or append elements in array) in jQuery. Is the
You can use Underscore.js. It really makes things simple.
For example, removing elements from an array, you need to do:
_.without([1, 2, 3], 2);
And the result will be [1, 3].
It reduces the code that you write using jQuery.grep, etc. in jQuery.