1.1.1 • Published 4 years ago

has-text v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Has Text

A simple search in text function. This function remove accents and transform to lowercase to search in string.

npm install --save has-text

Usage

compareText(text: string, search: string): boolean;
hasText(text: string, search: string): boolean;
hasTextIn(list: string[], search: string): boolean;
indexOfTextIn(list: string[], search: string): number;