Delete an element from an array in jQuery using the index

This will solve you to delete an element from an array in JQuery using the index
 
Consider following is my array
  1. localHeaderColumnArray: Array[2]  
  2. 0: "f"  
  3. 1: "g"  
  4. length: 2 
To delete an element
  1. delete localHeaderColumnArray[$(this).index()] ; 
Since I am using it in a click event of an li, I used $(this).index(). You can change it as
  1. delete localHeaderColumnArray[$(this).index()] ;