Cleared of the stuff the EnCoach team wanted changed
This commit is contained in:
@@ -20,7 +20,7 @@ const getFieldValue = (fields: string[], data: any): string | string[] => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const search = (text: string, fields: string[][], rows: any[]) => {
|
||||
export const search = <T>(text: string, fields: string[][], rows: T[]) => {
|
||||
const searchText = text.toLowerCase();
|
||||
return rows.filter((row) => {
|
||||
return fields.some((fieldsKeys) => {
|
||||
|
||||
Reference in New Issue
Block a user