UNPKG

@nozbe/microfuzz

Version:

A tiny, simple, fast fuzzy search library

8 lines (7 loc) 237 B
/** * Normalizes text so that it's suitable to comparisons, sorting, search, etc. by: * - turning into lowercase * - removing diacritics * - removing extra whitespace */ export default function normalizeText(string: string): string