Answers for "array.empty<t> method"

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
0

empty array

Array
(
)
Posted by: Guest on October-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language