swc/bundler/tests/.cache/deno/84db5ba4363156631c0a5fd07f97f4866ab95108.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

24 lines
516 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_curry1.js
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);
}
};
}