結果 : javascript how to check if variable is array or string