Add files via upload
This commit is contained in:
parent
6452976a23
commit
d6682bdb72
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue