結果 : how to check if array or string in javascript