Advertisement
bebo231312312321

Untitled

Mar 12th, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function wordFinder(str1, str2) {
  2.     let senctence = str2.split(' ').map(x => x.toLocaleLowerCase());
  3.    senctence = (senctence.includes(str1.toLocaleLowerCase()) ? str1 : `${str1} not found!`);
  4.     console.log(senctence)
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement