Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return items.filter(
- l =>
- unorm
- .nfd(l.Name.toLocaleLowerCase())
- .replace(/[\u0300-\u036f]/g, '')
- .indexOf(
- searchText
- .toLocaleLowerCase()
- .normalize('NFD')
- .replace(/[\u0300-\u036f]/g, '')
- ) > -1
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement