Having two distinct types of arrays,
firstArrayObject = [{name: "sample", number: 23}, {name: "sample2", number: 25}]
.
The second object takes the form of
secondObject = {someAttribute: bla, numbers: [23, 26, 27, 28}
My goal is to determine if any of the provided number
fields in the firstArrayObject
are not present in the secondObject
's numbers
array. If a number is not found, I will halt the search and return true. In this particular scenario, it would result in true, as "25" is missing from secondObject.numbers
Struggling with the various methods such as includes, filter, some that ES6 offers.
Hoping for assistance on resolving this issue.