_byValue.js 207 B

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