mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-25 22:29:26 +08:00
Add node modules and new code for release (#168)
Co-authored-by: OliverMKing <OliverMKing@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ca8d2604ac
commit
a0f00e5017
+13
@@ -0,0 +1,13 @@
|
||||
var extendOwn = require('./extendOwn.js');
|
||||
var isMatch = require('./isMatch.js');
|
||||
|
||||
// Returns a predicate for checking whether an object has a given set of
|
||||
// `key:value` pairs.
|
||||
function matcher(attrs) {
|
||||
attrs = extendOwn({}, attrs);
|
||||
return function(obj) {
|
||||
return isMatch(obj, attrs);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = matcher;
|
||||
Reference in New Issue
Block a user