-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Handle empty values in an array
Expected output:
const arr1 = [1, 2, 3, , , 6];
arr1.forEach(el => console.log(el)); // 1 2 3 6
const arr2 = [1, 2, 3, undefined, undefined, 6];
arr2.forEach(el => console.log(el)); // 1 2 3 undefined undefined 6
Current output:
const arr1 = [1, 2, 3, , , 6];
arr1.myForEach(el => console.log(el)); // 1 2 3 6
const arr2 = [1, 2, 3, undefined, undefined, 6];
arr2.myForEach(el => console.log(el)); // 1 2 3 6
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed