Files
GNX-mailEnterprise/frontend/node_modules/underscore/amd/where.js
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

12 lines
289 B
JavaScript

define(['./matcher', './filter'], function (matcher, filter) {
// Convenience version of a common use case of `_.filter`: selecting only
// objects containing specific `key:value` pairs.
function where(obj, attrs) {
return filter(obj, matcher(attrs));
}
return where;
});