Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Arr.forEach(this.searchSet, function (value) {
var value = this.options.termPath.length == 0 ? value : Obj.fromPath(value, this.options.termPath);
if (this.options.caseSensitive) {
value = value.toLowerCase();
}
var score = this.getCombinedModulePoints(needle, value);
result.push({
'score': score.combined,
'details': score.details,
'value': value
});
}, this);
return result.sort(function (a, b) {
Arr.forEach(this.searchSet, function (value) {
var value = this.options.termPath.length == 0 ? value : Obj.fromPath(value, this.options.termPath);
if (this.options.caseSensitive) {
value = value.toLowerCase();
}
var score = this.getCombinedModulePoints(needle, value);
result.push({
'score': score.combined,
'details': score.details,
'value': value
});
}, this);
return result.sort(function (a, b) {