Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created April 22, 2023 09:02
var arrayItems = ['a' , 'b', 'c' ];
arrayItems.length; // returns 3
//Delete one item starting from position 1
arrayItems.splice(1,1); // returns true
arrayItems.length; // returns 2
console.log(arrayItems); // [ 'a', 'c' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment