結果 : how to check if array of objects contains value in javascript