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