Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

empty array js

let list = [1, 2, 3, 4];
function empty() {
    //empty your array
    list.length = 0;
}
empty();
Source by www.jstips.co #
 
PREVIOUS NEXT
Tagged: #empty #array #js
ADD COMMENT
Topic
Name
1+1 =