javascript - Why does this return true?
某草草
某草草 2017-07-05 10:55:01
0
1
835
[].every(function (item, index, arr) {

        })
某草草
某草草

reply all(1)
过去多啦不再A梦

every search for each element, perform fallback on each element, if one of them returns false, it will finally return false

The array here has no elements, so there is no element and returns false, so it ultimately returns true

Similarly, [].some(function () {}) is also always false

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template