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