SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 58 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top