Add files via upload

This commit is contained in:
reddforman 2022-11-08 20:00:29 -05:00 committed by GitHub
parent 6452976a23
commit d6682bdb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 1 deletions

View File

@ -1,6 +1,22 @@
const removeFromArray = function() {
/*
const removeFromArray = function(array, number, ...moreNumber) {
const index = array.indexOf(number);
const removeArray = array.splice(index, 1);
return array;
};
*/
const removeFromArray = function(array, ...moreNumber) {
for (let i = 0; i <= moreNumber.length; i++) {
const index = array.indexOf(moreNumber);
newArray = array.splice(index, 1);
}
return array;
};
// Do not edit below this line
module.exports = removeFromArray;