Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js array delete specific element

var ar = [1, 2, 3, 4, 5, 6];
ar.length = 4; // set length to remove elements
console.log( ar ); //  [1, 2, 3, 4]
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #js #array #delete #specific #element
ADD COMMENT
Topic
Name
3+3 =