mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-26 06:39:27 +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
+12
@@ -0,0 +1,12 @@
|
||||
var noop = require('./noop.js');
|
||||
var get = require('./get.js');
|
||||
|
||||
// Generates a function for a given object that returns a given property.
|
||||
function propertyOf(obj) {
|
||||
if (obj == null) return noop;
|
||||
return function(path) {
|
||||
return get(obj, path);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = propertyOf;
|
||||
Reference in New Issue
Block a user