Merge pull request #16 from BillalPatel/remove-from-array

Made a start
This commit is contained in:
Billal Patel 2019-11-16 22:50:20 +00:00 committed by GitHub
commit b27adb1097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,17 @@
const removeFromArray = function() { const removeFromArray = function(arr, ...args) {
const filteredArray = [];
// const array = args;
const array = [3];
for (let i = 0; i < array.length; i++) {
if (arr.includes(array[i])) {
// filteredArray.push(5);
} else if (arr.includes(array[0])) {
// continue;
}
}
return filteredArray;
} }
module.exports = removeFromArray module.exports = removeFromArray