source: frontend/node_modules/underscore/cjs/propertyOf.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 288 bytes
Line 
1var noop = require('./noop.js');
2var get = require('./get.js');
3
4// Generates a function for a given object that returns a given property.
5function propertyOf(obj) {
6 if (obj == null) return noop;
7 return function(path) {
8 return get(obj, path);
9 };
10}
11
12module.exports = propertyOf;
Note: See TracBrowser for help on using the repository browser.