Supprimer tout l'index du tableau sauf celui jQuery
var input = ['a','b','c','d','e','f'];
input.length = 1;
console.log(input);
Run code snippet
Brave Butterfly
var input = ['a','b','c','d','e','f'];
input.length = 1;
console.log(input);
Run code snippet