constant.js 172 B

12345678
  1. // Predicate-generating function. Often useful outside of Underscore.
  2. function constant(value) {
  3. return function() {
  4. return value;
  5. };
  6. }
  7. module.exports = constant;