From cf77d5cb21c0d2dcd880c0a032dcd234d693e8c1 Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 5 May 2022 01:52:16 +0000 Subject: [PATCH] doc should note if function return not curry function (#3271) --- source/unapply.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/unapply.js b/source/unapply.js index 3426b5a93f..cfffce7edc 100644 --- a/source/unapply.js +++ b/source/unapply.js @@ -12,6 +12,8 @@ import _curry1 from './internal/_curry1.js'; * In other words, `R.unapply` derives a variadic function from a function which * takes an array. `R.unapply` is the inverse of [`R.apply`](#apply). * + * **Note:** The result of unapply is not automatically curried. + * * @func * @memberOf R * @since v0.8.0 @@ -26,7 +28,7 @@ import _curry1 from './internal/_curry1.js'; * @symb R.unapply(f)(a, b) = f([a, b]) */ var unapply = _curry1(function unapply(fn) { - return function() { + return function () { return fn(Array.prototype.slice.call(arguments, 0)); }; });