@zendesk/laika
Version:
Test, mock, intercept and modify Apollo Client's operations — in both browser and unit tests!
15 lines (14 loc) • 493 B
TypeScript
/**
* Like String.indexOf but only matches when surrounded by word boundary
*/
export declare const indexOfWord: (input: string, searchedWord: string, _preceedingChar?: string, _index?: number) => number;
export declare const forEachDeep: ({ path, value, key }: {
path?: string[];
key?: string;
value: unknown;
}, callback: (result: {
path: string[];
value: unknown;
key?: string;
}) => void) => void;
export declare const startsWithNumber: (str: string) => boolean;