結果 : check if array contains object or string javascript