Guest User

Untitled

a guest
Aug 23rd, 2019
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. );
RAW Paste Data