Current section

Files

Jump to
excessibility assets node_modules underscore amd propertyOf.js
Raw

assets/node_modules/underscore/amd/propertyOf.js

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