What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-15 04:11:25
javascript remove junk element from array
let myArray = ["user1","user2", "", ""] console.log(myArray) function cleanArray(_array) { for (i in _array){ if(_array[i] == ''){ _array.splice(i, 1) } } return _array } console.log(cleanArray... Add solution -
Javascript 2021-11-12 23:45:09
JS array clear
let aray = [1,2,3,4,5,6,7,8,9,10]; //as with most coding there are several ways you can do anything //see whichever works best for your scenario //set the array to equal a blank array array = []; //set the array's length to 0 array.length = 0; //using... Add solution -
CSS 2021-10-22 12:57:04
delete array element
//Remove specific value by index array.splice(index, 1); Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5