Files
ETB/ETB-FrontEnd/node_modules/underscore/cjs/propertyOf.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

13 lines
288 B
JavaScript

var get = require('./get.js');
var noop = require('./noop.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;