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

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

Fix frontend appearance

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