Merge pull request #5442 from chrootsu/lodash-deburr

lodash: changed _.deburr() method
This commit is contained in:
Masahiro Wakame
2015-08-21 22:59:51 +09:00
2 changed files with 25 additions and 1 deletions
+4
View File
@@ -1673,7 +1673,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
@@ -7460,7 +7460,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;
}