Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js delete all from array

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