mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -15,8 +15,6 @@ import createMathOperation from './_createMathOperation.js';
|
||||
* _.subtract(6, 4);
|
||||
* // => 2
|
||||
*/
|
||||
var subtract = createMathOperation(function(minuend, subtrahend) {
|
||||
return minuend - subtrahend;
|
||||
}, 0);
|
||||
var subtract = createMathOperation((minuend, subtrahend) => minuend - subtrahend, 0);
|
||||
|
||||
export default subtract;
|
||||
|
||||
Reference in New Issue
Block a user