Ramda Adjunct 2.7.0

noop.js

  1. import { always } from 'ramda';
  2. import stubUndefined from './stubUndefined';
  3. /**
  4. * A function that performs no operations.
  5. *
  6. * @func noop
  7. * @memberOf RA
  8. * @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
  9. * @category Function
  10. * @sig ... -> undefined
  11. * @return {undefined}
  12. * @example
  13. *
  14. * RA.noop(); //=> undefined
  15. * RA.noop(1, 2, 3); //=> undefined
  16. */
  17. const noop = always(stubUndefined());
  18. export default noop;