1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/frontend/src/utils/search.ts
Nuno Góis 1d43c05131
feat: improve group users select search (#1988)
* feat: improve group users select search

* fix: implement in project access assignment as well

* refactor: move caseInsensitiveSearch helper to util
2022-08-30 08:06:59 +01:00

3 lines
140 B
TypeScript

export const caseInsensitiveSearch = (search: string, value?: string) =>
Boolean(value?.toLowerCase()?.includes(search.toLowerCase()));