Answers for "clear arraylist in javascript"

13

javascript empty array

arr = [];   // set array=[]

//function
const empty = arr => arr.length = 0;
//example
var arr= [1,2,3,4,5];
empty(arr) // arr=[]
Posted by: Guest on July-02-2020
3

js delete all array items

A = [];
Posted by: Guest on May-30-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language