結果 : check if array of objects contains key javascript