Answer the question
In order to leave comments, you need to log in
How to iterate over two arrays and exclude duplicates from them, taking into account that duplicates can be located asynchronously?
Can you please tell me how to iterate over two arrays and exclude duplicates from them, taking into account that duplicates can be located asynchronously?
Example
There are 2 arrays (numbers are arbitrary)
let a = [1, 2, 3,4,5, -1,9]
let b - [3,4, -1,5,6,7]
After iteration, return array a without the elements that are in the array b. The array b does not need to be changed.
t.s. Array a should be = [1,2,9]
Array b unchanged
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question