mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.7.0.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
define(['./_createCompounder'], function(createCompounder) {
|
||||
|
||||
/**
|
||||
* Converts `string` to [snake case](https://en.wikipedia.org/wiki/Snake_case).
|
||||
* Converts `string` to
|
||||
* [snake case](https://en.wikipedia.org/wiki/Snake_case).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to convert.
|
||||
* @returns {string} Returns the snake cased string.
|
||||
@@ -16,7 +18,7 @@ define(['./_createCompounder'], function(createCompounder) {
|
||||
* _.snakeCase('fooBar');
|
||||
* // => 'foo_bar'
|
||||
*
|
||||
* _.snakeCase('--foo-bar');
|
||||
* _.snakeCase('--FOO-BAR--');
|
||||
* // => 'foo_bar'
|
||||
*/
|
||||
var snakeCase = createCompounder(function(result, word, index) {
|
||||
|
||||
Reference in New Issue
Block a user