Javascript Arrays – push and remove items

If you are working with Javascript Array, you would probably benefit from these additional functions handling Array elements. They allow to add and remove items without fetching the whole array.

To push an item to the Array (unique item) we are using the following function:

To remove an item to the Array we can use the following function:

How to use it:

Schermata 2014-03-15 a 19.42.44