結果 : check if type of variable is object javascript