Skip to content

Commit a8bb981

Browse files
Refactor includes function to remove unnecessary whitespace for cleaner code
1 parent 498fa5f commit a8bb981

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sprint-1/refactor/includes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// Refactor the implementation of includes to use a for...of loop
1+
// Refactor the implementation of includes to use a for...of loop
22

33
function includes(list, target) {
44
for (let element of list) {
5-
65
if (element === target) {
76
return true;
87
}

0 commit comments

Comments
 (0)