i want to implement a function like this in js

```
            function(arrayOfObjects, arrayOfValues, property) {

/*here i want to return all the objects of 'arrayOfObjects' 
        which satisfies the following condition 
        (index is the iterative index of array 'arrayOfObjects')
               arrayOfObjects[index][property] is equivalent to any of
    the values that lies in arrayOfValues */

            };

```

example :

```
arrayOfObjects = [{ a: 1, b: 2 }, { a: 3, b:4 }, { a: 1, b :3 }];
arrayOfValues = [ 2, 3 ];

function(arrayOfObjects, arrayOfValues, 'b')

```

should `return [{ a: 1, b: 2 }, { a: 1, b :3 }]`