mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -10,7 +10,7 @@ import baseToString from './_baseToString.js';
|
||||
* @returns {Function} Returns the new mathematical operation function.
|
||||
*/
|
||||
function createMathOperation(operator, defaultValue) {
|
||||
return function(value, other) {
|
||||
return (value, other) => {
|
||||
var result;
|
||||
if (value === undefined && other === undefined) {
|
||||
return defaultValue;
|
||||
|
||||
Reference in New Issue
Block a user