結果 : javascript how to determine type of object