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 _deepGet = require('./_deepGet.js');
|
||||
var _toPath = require('./_toPath.js');
|
||||
|
||||
// Creates a function that, when passed an object, will traverse that object’s
|
||||
// properties down the given `path`, specified as an array of keys or indices.
|
||||
function property(path) {
|
||||
path = _toPath(path);
|
||||
return function(obj) {
|
||||
return _deepGet(obj, path);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = property;
|
||||
Reference in New Issue
Block a user