source: frontend/node_modules/underscore/cjs/property.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: 383 bytes
Line 
1var _deepGet = require('./_deepGet.js');
2var _toPath = require('./_toPath.js');
3
4// Creates a function that, when passed an object, will traverse that object’s
5// properties down the given `path`, specified as an array of keys or indices.
6function property(path) {
7 path = _toPath(path);
8 return function(obj) {
9 return _deepGet(obj, path);
10 };
11}
12
13module.exports = property;
Note: See TracBrowser for help on using the repository browser.