In the following javascript arrray of objects i want to check if every question id in array two found in array one
arrayOne=[{"question":"100","response":"aaaa"},
{"question":"200","response":"aaaa"}]
arrayTwo=[{"question":"100","output":true},
{"question":"200","output":true}]
examples
if arrayTwo
arrayTwo=[{"question":"100","output":true}]
return false
if arrayTwo
arrayTwo=[{"question":"100","output":true},
{"question":"200","output":true}]
return true.
How to make function to check the two arrays?