refactor(Cypress): Moved Cypress to the main folder of the project, as I don't need a sub project for now.
This commit is contained in:
40
node_modules/ramda/es/call.js
generated
vendored
Normal file
40
node_modules/ramda/es/call.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
import curry from "./curry.js";
|
||||
/**
|
||||
* Returns the result of calling its first argument with the remaining
|
||||
* arguments. This is occasionally useful as a converging function for
|
||||
* [`R.converge`](#converge): the first branch can produce a function while the
|
||||
* remaining branches produce values to be passed to that function as its
|
||||
* arguments.
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.9.0
|
||||
* @category Function
|
||||
* @sig (*... -> a),*... -> a
|
||||
* @param {Function} fn The function to apply to the remaining arguments.
|
||||
* @param {...*} args Any number of positional arguments.
|
||||
* @return {*}
|
||||
* @see R.apply
|
||||
* @example
|
||||
*
|
||||
* R.call(R.add, 1, 2); //=> 3
|
||||
*
|
||||
* const indentN = R.pipe(R.repeat(' '),
|
||||
* R.join(''),
|
||||
* R.replace(/^(?!$)/gm));
|
||||
*
|
||||
* const format = R.converge(R.call, [
|
||||
* R.pipe(R.prop('indent'), indentN),
|
||||
* R.prop('value')
|
||||
* ]);
|
||||
*
|
||||
* format({indent: 2, value: 'foo\nbar\nbaz\n'}); //=> ' foo\n bar\n baz\n'
|
||||
* @symb R.call(f, a, b) = f(a, b)
|
||||
*/
|
||||
|
||||
var call =
|
||||
/*#__PURE__*/
|
||||
curry(function call(fn) {
|
||||
return fn.apply(this, Array.prototype.slice.call(arguments, 1));
|
||||
});
|
||||
export default call;
|
Reference in New Issue
Block a user