結果 : how to check if an array of objects has a value in javascript