constant.js 159 B

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