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