JavaScrip數組去重(進階版- 包含NaN,undefined,null)

NaN有兩中通用斷定方法和數組中一種斷定方法:php 一個是絕對不全等於(===)自身 一個是ES6的isNaN() 數組原型鏈上的Array.prototype.includes() 不等特性,須要藉助佔位符web var arr=[1,1,'true',true,true,5,'F',false, undefined, null,null,undefined, NaN, 0, 1, 'a',
相關文章
相關標籤/搜索