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