update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
19
node_modules/ramda/es/internal/_curry1.js
generated
vendored
Normal file
19
node_modules/ramda/es/internal/_curry1.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
import _isPlaceholder from "./_isPlaceholder.js";
|
||||
/**
|
||||
* Optimized internal one-arity curry function.
|
||||
*
|
||||
* @private
|
||||
* @category Function
|
||||
* @param {Function} fn The function to curry.
|
||||
* @return {Function} The curried function.
|
||||
*/
|
||||
|
||||
export default function _curry1(fn) {
|
||||
return function f1(a) {
|
||||
if (arguments.length === 0 || _isPlaceholder(a)) {
|
||||
return f1;
|
||||
} else {
|
||||
return fn.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue