mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -7,9 +7,7 @@
|
||||
* @returns {Function} Returns the new function.
|
||||
*/
|
||||
function overArg(func, transform) {
|
||||
return function(arg) {
|
||||
return func(transform(arg));
|
||||
};
|
||||
return arg => func(transform(arg));
|
||||
}
|
||||
|
||||
export default overArg;
|
||||
|
||||
Reference in New Issue
Block a user