ship-gis/node_modules/underscore/amd/propertyOf.js

14 lines
286 B
JavaScript
Raw Normal View 히스토리

2026-01-22 09:14:01 +09:00
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;
});