fuzzyjs
Version:
Simple fuzzy matching
10 lines (9 loc) • 356 B
TypeScript
/**
* Returns a normalized version of the string. This comes from
* https://stackoverflow.com/a/37511463. It converts accented characters into
* two UTF-8 characters (ie. `è` becomes e and `) and strip the accents.
*
* @param str The input string
* @returns The input string without accents
*/
export declare function toLatin(str: string): string;