_byValue.js 236 B

1234567891011
  1. define(function () {
  2. // Internal wrapper to enable match-by-value mode in `linearSearch`.
  3. function byValue(value) {
  4. if (!(this instanceof byValue)) return new byValue(value);
  5. this.value = value;
  6. }
  7. return byValue;
  8. });