Answers for "remove object from array by index javascript"

1

js remove if

ar = [1, 2, 3, 4];
ar = ar.filter(item => !(item > 3));
console.log(ar) // [1, 2, 3]
Posted by: Guest on October-17-2020

Code answers related to "remove object from array by index javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language