結果 : check if array of object has specific value javascript