結果 : javascript determine type of object