diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 13ac22469..f94a7596d 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1673,7 +1673,11 @@ result = _.uniqueId(); result = _.camelCase('Foo Bar'); result = _.capitalize('fred'); + +// _.deburr result = _.deburr('déjà vu'); +result = _('déjà vu').deburr(); + result = _.endsWith('abc', 'c'); // _.escape diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index ab1ef2a3e..53729b9f5 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -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 { + /** + * @see _.deburr + */ + deburr(): string; + } + + interface LoDashStatic { endsWith(str?: string, target?: string, position?: number): boolean; }