lodash: changed _.deburr() method

This commit is contained in:
Ilya Mochalov
2015-08-20 01:20:35 +05:00
parent bb45306d0f
commit 8f3167dc9f
2 changed files with 25 additions and 1 deletions
+4
View File
@@ -1652,7 +1652,11 @@ result = <string>_.uniqueId();
result = <string>_.camelCase('Foo Bar');
result = <string>_.capitalize('fred');
// _.deburr
result = <string>_.deburr('déjà vu');
result = <string>_('déjà vu').deburr();
result = <boolean>_.endsWith('abc', 'c');
// _.escape
+21 -1
View File
@@ -7441,7 +7441,27 @@ declare module _ {
interface LoDashStatic {
camelCase(str?: string): string;
capitalize(str?: string): string;
deburr(str?: string): string;
}
//_.deburr
interface LoDashStatic {
/**
* Deburrs string by converting latin-1 supplementary letters to basic latin letters and removing combining
* diacritical marks.
* @param string The string to deburr.
* @return Returns the deburred string.
*/
deburr(string?: string): string;
}
interface LoDashWrapper<T> {
/**
* @see _.deburr
*/
deburr(): string;
}
interface LoDashStatic {
endsWith(str?: string, target?: string, position?: number): boolean;
}