Answers for "javascript remove all objects from array of objects except first"

0

javascript remove all objects from array of objects except first

var input = ['a','b','c','d','e','f'];  
input.length = 1;
console.log(input);
Posted by: Guest on November-18-2020

Code answers related to "javascript remove all objects from array of objects except first"

Code answers related to "Javascript"

Browse Popular Code Answers by Language