constant.js 159 B

1234567
  1. // Predicate-generating function. Often useful outside of Underscore.
  2. export default function constant(value) {
  3. return function() {
  4. return value;
  5. };
  6. }