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:
4
add.js
4
add.js
@@ -15,8 +15,6 @@ import createMathOperation from './_createMathOperation.js';
|
||||
* _.add(6, 4);
|
||||
* // => 10
|
||||
*/
|
||||
var add = createMathOperation(function(augend, addend) {
|
||||
return augend + addend;
|
||||
}, 0);
|
||||
var add = createMathOperation((augend, addend) => augend + addend, 0);
|
||||
|
||||
export default add;
|
||||
|
||||
Reference in New Issue
Block a user