diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 1d6b1c7da..3ba4db712 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1737,7 +1737,10 @@ result = _.uniqueId(); * String *********/ +// _.camelCase result = _.camelCase('Foo Bar'); +result = _('Foo Bar').camelCase(); + result = _.capitalize('fred'); // _.deburr diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 94f39a9a3..746329aab 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7545,8 +7545,24 @@ declare module _ { * String * **********/ + //_.camelCase + interface LoDashStatic { + /** + * Converts string to camel case. + * @param string The string to convert. + * @return Returns the camel cased string. + */ + camelCase(string?: string): string; + } + + interface LoDashWrapper { + /** + * @see _.camelCase + */ + camelCase(): string; + } + interface LoDashStatic { - camelCase(str?: string): string; capitalize(str?: string): string; }