Answers for "Remove all index from array except the one jquery"

0

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
Posted by: Guest on October-20-2021

Code answers related to "Remove all index from array except the one jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language