lodash: changed _.startCase() method

This commit is contained in:
Ilya Mochalov
2015-08-24 00:08:17 +05:00
parent af81415504
commit 527298c48e
2 changed files with 16 additions and 1 deletions
+2
View File
@@ -1780,7 +1780,9 @@ result = <number>_('08').parseInt(10);
result = <string>_.snakeCase('Foo Bar');
result = <string>_('Foo Bar').snakeCase();
// _.startCase
result = <string>_.startCase('--foo-bar');
result = <string>_('--foo-bar').startCase();
// _.startsWith
result = <boolean>_.startsWith('abc', 'a');
+14 -1
View File
@@ -7693,8 +7693,21 @@ declare module _ {
snakeCase(): string;
}
//_.startCase
interface LoDashStatic {
startCase(str?: string): string;
/**
* Converts string to start case.
* @param string The string to convert.
* @return Returns the start cased string.
*/
startCase(string?: string): string;
}
interface LoDashWrapper<T> {
/**
* @see _.startCase
*/
startCase(): string;
}
//_.startsWith