The typeof
operator doesn't really help us to find the real type of an object.
I've already seen the following code :
Object.prototype.toString.apply(t)
Question:
Is it the most accurate way of checking the object's type?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…