@fluentui/react-northstar
Version:
A themable React component library.
25 lines (24 loc) • 976 B
TypeScript
/**
* Check whether source includes target ignoring case.
*/
export declare const includes: (source: string, target: string) => boolean;
/**
* Checks whether the key or the value of data[key] contains the search string.
*/
export declare const find: (data: object, key: string, search: string) => boolean;
/**
* Checks if the data[key] is primitive and override in the overrides object.
*/
export declare const isOverridden: (data: object, key: string, overrides: object) => boolean;
/**
* Filters the data for the value string (if it appears in the key or value). Considers nested objects.
*/
export declare const filter: (data: object, value: string) => {};
/**
* Returns array of values that matches the predicate. Considers nested objects.
*/
export declare const getValues: (value: any, predicate: (str: string) => boolean) => string[];
/**
* Removes null values from an object. Considers nested objects.
*/
export declare const removeNulls: (o: any) => any;