Currently I have an array with values:
var array1 = ['new_user', 'promotion']
What i need to do is filter and an object with this array1:
OBJc = [
{"id": 1, "array_": ['promotion', 'test1']},
{"id": 2, "array_": ['test444', 'test1']},
{"id": 3, "array_": ['new_user', 'test1']}
]
I need to filter this json based of if "array_" has any of the values in array1.
So the output would be:
[
{"id": 1, "array_": ['promotion', 'test1']},
{"id": 3, "array_": ['new_user', 'test1']}
]