login/node_modules/underscore/amd/_byValue.js
2023-11-20 14:12:35 +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;
});