I need to find if values inside two different arrays of objects is equal. This is an example of what i need:
https://jsfiddle.net/5cb1xsq2/10/
I need to compare the object1 and object2 arrays, and show only the object1 array with the same 'years' value of the object2 array.
This is the result for this case:
{
    'name': 'john',
    'surname': 'doe',
    'years': 29
}
Thank you!
 
     
     
    