ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
16 lines (15 loc) • 328 B
JavaScript
import { unapply, identity } from 'ramda';
/**
* Converts arguments to list.
*
* @func
* @category Function
*
* @example
*
* R.compose(R.sum, R_.argumentsToList)(1, 2, 3) // 6
*
* @sig (a, b, c, ...) → ([a, b, c, ...])
*/
var argumentsToList = /*#__PURE__*/unapply(identity);
export default argumentsToList;