constant.js 172 B

123456789
  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;