8000 Remove unnecessary null check in arrayEach (#4082) · FullStackBlog/lodash@c3740e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3740e0

Browse files
blikblumjdalton
authored andcommitted
Remove unnecessary null check in a 8000 rrayEach (lodash#4082)
1 parent 7885483 commit c3740e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.internal/arrayEach.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
function arrayEach(array, iteratee) {
1010
let index = -1
11-
const length = array == null ? 0 : array.length
11+
const length = array.length
1212

1313
while (++index < length) {
1414
if (iteratee(array[index], index, array) === false) {

0 commit comments

Comments
 (0)
0