1
0
mirror of https://github.com/Azure/setup-helm.git synced 2026-07-08 09:21:37 +00:00
Files
2022-01-26 17:16:26 -05:00

14 lines
286 B
JavaScript

define(['./noop', './get'], function (noop, get) {
// 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);
};
}
return propertyOf;
});