Merge pull request #5502 from chrootsu/lodash-camelCase

lodash: changed _.camelCase() method
This commit is contained in:
Masahiro Wakame
2015-08-26 01:41:25 +09:00
2 changed files with 20 additions and 1 deletions
+3
View File
@@ -1737,7 +1737,10 @@ result = <string>_.uniqueId();
* String
*********/
// _.camelCase
result = <string>_.camelCase('Foo Bar');
result = <string>_('Foo Bar').camelCase();
result = <string>_.capitalize('fred');
// _.deburr
+17 -1
View File
@@ -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<T> {
/**
* @see _.camelCase
*/
camelCase(): string;
}
interface LoDashStatic {
camelCase(str?: string): string;
capitalize(str?: string): string;
}