Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. return items.filter(
  2. l =>
  3. unorm
  4. .nfd(l.Name.toLocaleLowerCase())
  5. .replace(/[\u0300-\u036f]/g, '')
  6. .indexOf(
  7. searchText
  8. .toLocaleLowerCase()
  9. .normalize('NFD')
  10. .replace(/[\u0300-\u036f]/g, '')
  11. ) > -1
  12. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement