1 | var _isPlaceholder =
|
2 | /*#__PURE__*/
|
3 | require("./_isPlaceholder");
|
4 | /**
|
5 | * Optimized internal one-arity curry function.
|
6 | *
|
7 | * @private
|
8 | * @category Function
|
9 | * @param {Function} fn The function to curry.
|
10 | * @return {Function} The curried function.
|
11 | */
|
12 |
|
13 |
|
14 | function _curry1(fn) {
|
15 | return function f1(a) {
|
16 | if (arguments.length === 0 || _isPlaceholder(a)) {
|
17 | return f1;
|
18 | } else {
|
19 | return fn.apply(this, arguments);
|
20 | }
|
21 | };
|
22 | }
|
23 |
|
24 | module.exports = _curry1; |
\ | No newline at end of file |