Skip to content

Commit b6edd25

Browse files
committed
indexOf, includes
1 parent 5c836eb commit b6edd25

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

array-exists.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ const bigBuddy = bestfriends(1113);
1515
console.log(bigBuddy);
1616

1717

18+
if(friends.indexOf('adrita')!=-1){
19+
console.log('adrita exits');
20+
}
21+
if(friends.includes('nimki')){
22+
console.log('nimki exits');
23+
}
24+
1825
/* function bestFriend(friendNames){
1926
2027
let max = friendNames[0];

0 commit comments

Comments
 (0)