javascript - How to determine the length of empty array elements in JS
淡淡烟草味
淡淡烟草味 2017-05-19 10:12:26
0
2
373
Object.prototype.toString.call(val) == '[object Array]' ? val.some(e => e != undefined && e != null && e != '') : false;

val is the array after the splice(0, 1) operation. I want val.some to return in the situation shown below. false

淡淡烟草味
淡淡烟草味

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!