Skip to content

Commit

Permalink
Removed return in forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x authored Sep 16, 2024
1 parent c7d98df commit 8324f63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ export function deepForEach (value, array, callback) {

function recurse1 (value) {
if (Array.isArray(value)) {
return value.forEach(function (child) {
value.forEach(function (child) {
recurse1(child)
})
} else {
Expand All @@ -931,7 +931,7 @@ export function deepForEach (value, array, callback) {

function recurse2 (value, index) {
if (Array.isArray(value)) {
return value.forEach(function (child, i) {
value.forEach(function (child, i) {
index.push(i)
recurse2(child, index)
index.pop()
Expand All @@ -944,7 +944,7 @@ export function deepForEach (value, array, callback) {

function recurse3 (value, index) {
if (Array.isArray(value)) {
return value.forEach(function (child, i) {
value.forEach(function (child, i) {
index.push(i)
recurse3(child, index)
index.pop()
Expand Down

0 comments on commit 8324f63

Please sign in to comment.