first iteration that can create an array but fails

This commit is contained in:
Fredrik Uddenfeldt 2023-05-18 22:22:40 +02:00
parent f11ffd66e6
commit 37407c8465
1 changed files with 10 additions and 6 deletions

View File

@ -1,13 +1,17 @@
const removeFromArray = function([x], [y]) { // First iteration that fails all tests but can create an array:
let array = [x, y]; const removeFromArray = function([array], args) {
array.indexOf(0); function createArray(...args) {
array.indexOf(1); let newArray = args
}
array.splice()
}; };
// const removeFromArray = function() {};
// Do not edit below this line // Do not edit below this line
module.exports = removeFromArray; module.exports = removeFromArray;