[Metro > Filters] Add findByStoreName

This commit is contained in:
Beef 2023-01-08 23:22:10 +00:00
parent 4ccd758f4a
commit 488cc76dda

View file

@ -82,4 +82,5 @@ const dNameFilter = (name: string, defaultExp: boolean) => (defaultExp ? (m: any
export const findByProps: PropsFinder = (...props) => find(propsFilter(props));
export const findByPropsAll: PropsFinderAll = (...props) => findAll(propsFilter(props));
export const findByDisplayName = (name: string, defaultExp = true) => find(dNameFilter(name, defaultExp));
export const findByDisplayNameAll = (name: string, defaultExp = true) => findAll(dNameFilter(name, defaultExp));
export const findByDisplayNameAll = (name: string, defaultExp = true) => findAll(dNameFilter(name, defaultExp));
export const findByStoreName = (storeName: string) => find((m: any) => m.getName?.() === storeName);