mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -21,8 +21,8 @@ import createCompounder from './_createCompounder.js';
|
||||
* _.snakeCase('--FOO-BAR--');
|
||||
* // => 'foo_bar'
|
||||
*/
|
||||
var snakeCase = createCompounder(function(result, word, index) {
|
||||
return result + (index ? '_' : '') + word.toLowerCase();
|
||||
});
|
||||
const snakeCase = createCompounder((result, word, index) =>
|
||||
result + (index ? '_' : '') + word.toLowerCase()
|
||||
);
|
||||
|
||||
export default snakeCase;
|
||||
|
||||
Reference in New Issue
Block a user