source: frontend/node_modules/underscore/cjs/set.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: 335 bytes
Line 
1var isArray = require('./isArray.js');
2var isObject = require('./isObject.js');
3var _set = require('./_set.js');
4
5// set the value in given path
6function set (obj, path, value) {
7 if (!isObject(obj) || !isArray(path)) return obj;
8 if (path.length === 0) return obj;
9
10 _set(obj, path, value);
11
12 return obj;
13}
14
15module.exports = set;
Note: See TracBrowser for help on using the repository browser.