Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove all index from array except the one jquery

var input = ['a','b','c','d','e','f'];  
input.length = 1;
console.log(input);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Remove #index #array #jquery
ADD COMMENT
Topic
Name
2+4 =