I have the following array:
var data = [
'Value1',
'Value2',
'Value3'
];
Using another array, how would I get a truthy value if a value was found within the data array?
var dataLookup = [
'Value1',
'Value2'
]
I know that in lodash I could do the following to look for a single value;
_.includes(data, 'Value1'); // true
I would like to pass an array of values to look for.