UNPKG

@technobuddha/library

Version:
10 lines (9 loc) 398 B
/** * Convert a string to a numeric value * @param input - The string to convert * @param tests - Array of tests (string value or regular expressions) * @returns The index of the first test to match the input string * @group String * @category Operations */ export declare function toEnumeration(input: string, ...tests: (Iterable<string | RegExp> | string | RegExp)[]): number | undefined;