UNPKG

js-search

Version:

JS Search is an efficient, client-side search library for JavaScript and JSON objects

15 lines (12 loc) 358 B
// @flow /** * A sanitizer helps convert searchable field text and user query text to a format that can be easily compared. Among * other things, this often involves operations like trimming leading and trailing whitespace. */ export interface ISanitizer { /** * @param text * @return Sanitized text */ sanitize(text : string) : string; };