Write function that passes the 1st test

This commit is contained in:
borobor 2022-02-16 20:29:37 +01:00
parent 034c0b6c1c
commit 167042a03b
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
const removeFromArray = function() { const removeFromArray = function(arr, item) {
let removedArr = arr.splice((item - 1), 1);
return arr;
}; };
// Do not edit below this line // Do not edit below this line