Let's dive into this: for the items listed in foo
, how can we identify all the positive matches with the string
attributes in each object within array bar
? Here's a quick example:
var foo = ['one', 'two', 'three'];
var bar = [
{
integer: 1,
string: 'one'
},
{
integer: 3,
string: 'three'
}
];