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