Ramda Adjunct 4.0.0

list.js

  1. import { unapply, identity } from 'ramda';
  2. /**
  3. * Creates a list from arguments.
  4. *
  5. * @func list
  6. * @memberOf RA
  7. * @since {@link https://char0n.github.io/ramda-adjunct/1.1.0|v1.1.0}
  8. * @category List
  9. * @sig a... -> [a...]
  10. * @param {...*} items The items of the feature list
  11. * @return {Array} New list created from items
  12. * @see {@link https://github.com/ramda/ramda/wiki/Cookbook#create-a-list-function|Ramda Cookbook}
  13. * @example
  14. *
  15. * RA.list('a', 'b', 'c'); //=> ['a', 'b', 'c']
  16. */
  17. const list = unapply(identity);
  18. export default list;