Remove unnecessary null check in arrayEach (#4082)

This commit is contained in:
Luiz Américo
2018-11-25 13:24:43 -02:00
committed by John-David Dalton
parent 78854835aa
commit c3740e0847

View File

@@ -8,7 +8,7 @@
*/ */
function arrayEach(array, iteratee) { function arrayEach(array, iteratee) {
let index = -1 let index = -1
const length = array == null ? 0 : array.length const length = array.length
while (++index < length) { while (++index < length) {
if (iteratee(array[index], index, array) === false) { if (iteratee(array[index], index, array) === false) {