mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Remove unnecessary null check in arrayEach (#4082)
This commit is contained in:
committed by
John-David Dalton
parent
78854835aa
commit
c3740e0847
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user