Update overArgs.md

This commit is contained in:
Angelos Chalaris
2020-01-13 10:05:49 +02:00
committed by GitHub
parent 47e0d297c8
commit 1b2a9324ec

View File

@ -1,6 +1,6 @@
--- ---
title: overArgs title: overArgs
tags: adapter,function,intermediate tags: function,intermediate
--- ---
Creates a function that invokes the provided function with its arguments transformed. Creates a function that invokes the provided function with its arguments transformed.
@ -16,4 +16,4 @@ const square = n => n * n;
const double = n => n * 2; const double = n => n * 2;
const fn = overArgs((x, y) => [x, y], [square, double]); const fn = overArgs((x, y) => [x, y], [square, double]);
fn(9, 3); // [81, 6] fn(9, 3); // [81, 6]
``` ```