From 7ad73813e456801029f1e751c5a517e10be56ab0 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 23 Aug 2016 11:51:00 -0400 Subject: [PATCH] splice --- javascript.md | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript.md b/javascript.md index d1f18e3..b5ff9ff 100644 --- a/javascript.md +++ b/javascript.md @@ -135,6 +135,7 @@ numbers.pop() //remove the last element and returns it numbers.push(26) //adds a number to the last position of the array numbers.shift() //remove the first element and returns it numbers.unshift(56) //adds a number to the first position of the array and pushes everything down +numbers.splice(startIndex, numberOfItemsToRemove); //remove an element at a specified index and shift elements to the right down ``` ## Equality