typeof 檢測數(shù)據(jù)類型
tyoeof null //空對象 typeof function //function
isNaN()不是一個(gè)數(shù)值的數(shù)字檢測
數(shù)組
Array.isArray(value) 個(gè)
value is instanceof Array 是不是數(shù)組的實(shí)例對象
value .constrouctor Array 這個(gè)好像是好像又不是 記不清了
object
hasOwnProperty(屬性名字) 檢測實(shí)例對象中有沒有這個(gè)屬性 不是實(shí)例的原型中
isPrototypyOf(objet) 檢測傳入的對象是不是傳入對象的原型
propertyIsEnumber(屬性) 檢測對象是否能夠枚舉 for-in遍歷
。constrouctor object 是不是一個(gè)對象實(shí)例對象
。constrouctor Date 是不是Date對象//其實(shí)其他的好像同理