mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Add cleanDiacritics method
This commit is contained in:
Vendored
+7
@@ -91,6 +91,13 @@ declare module 'underscore' {
|
||||
*/
|
||||
clean(str: string): string;
|
||||
|
||||
/**
|
||||
* Replace diacritic characters with closest ASCII equivalents.
|
||||
* cleanDiacritics('ääkkönen') => 'aakkonen'
|
||||
* @param str
|
||||
*/
|
||||
cleanDiacritics(str: string): string;
|
||||
|
||||
/**
|
||||
* Count occurences of a sub string.
|
||||
* ('Hello world', 'l') => 3
|
||||
|
||||
Reference in New Issue
Block a user