login/node_modules/underscore/amd/_byValue.js
2023-12-01 11:10:44 +08:00

11 lines
236 B
JavaScript

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