pseudocode for next iteration
This commit is contained in:
parent
37407c8465
commit
7e377a42aa
|
@ -9,6 +9,13 @@ const removeFromArray = function([array], args) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// NEXT need to find way to compare the two arrays
|
||||||
|
// i.e. compare "array" and "args"
|
||||||
|
// and check for duplicates..
|
||||||
|
// and remove the duplicate from the first array
|
||||||
|
// and finally return the new version of the first array
|
||||||
|
// check for methods here: https://dev.to/soyleninjs/3-ways-to-remove-duplicates-in-an-array-in-javascript-259o
|
||||||
|
|
||||||
|
|
||||||
// const removeFromArray = function() {};
|
// const removeFromArray = function() {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue