lodash: changed _.kebabCase() method

This commit is contained in:
Ilya Mochalov
2015-08-25 02:53:18 +05:00
parent af81415504
commit ce500554f7
2 changed files with 16 additions and 1 deletions

View File

@@ -1742,7 +1742,9 @@ result = <string>_('fred, barney, & pebbles').escape();
result = <string>_.escapeRegExp('[lodash](https://lodash.com/)');
result = <string>_('[lodash](https://lodash.com/)').escapeRegExp();
// _.kebabCase
result = <string>_.kebabCase('Foo Bar');
result = <string>_('Foo Bar').kebabCase();
// _.pad
result = <string>_.pad('abd');

15
lodash/lodash.d.ts vendored
View File

@@ -7587,8 +7587,21 @@ declare module _ {
escapeRegExp(): string;
}
//_.kebabCase
interface LoDashStatic {
kebabCase(str?: string): string;
/**
* Converts string to kebab case.
* @param string The string to convert.
* @return Returns the kebab cased string.
*/
kebabCase(string?: string): string;
}
interface LoDashWrapper<T> {
/**
* @see _.kebabCase
*/
kebabCase(): string;
}
interface LoDashStatic {