noop.js 328 B

12345678910111213141516171819
  1. /**
  2. * A no-operation function that returns `undefined` regardless of the
  3. * arguments it receives.
  4. *
  5. * @static
  6. * @memberOf _
  7. * @category Utility
  8. * @example
  9. *
  10. * var object = { 'user': 'fred' };
  11. *
  12. * _.noop(object) === undefined;
  13. * // => true
  14. */
  15. function noop() {
  16. // No operation performed.
  17. }
  18. module.exports = noop;