2025-04-23 09:34:08 +08:00

8 lines
207 B
JavaScript

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