Advertisement
nikolayneykov

Untitled

Mar 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(word, text) {
  2.     text.split(' ')
  3.         .filter(w => !w.toLowerCase().includes(word.toLowerCase()))
  4.         .forEach((w, i) => console.log(`idx[${i}] -> ${w}`));
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement