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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy