Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function mutate([first, second]) {
  2. function isInFirstCaseInsensitive(ch) {
  3. return first.search(new RegExp(ch, 'i')) !== -1;
  4. }
  5.  
  6. return second.split().every(isInFirstCaseInsensitive);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement