結果 : check if array or string javascript