Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
15
node_modules/underscore/amd/set.js
generated
vendored
Normal file
15
node_modules/underscore/amd/set.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
define(['./isArray', './isObject', './_set'], function (isArray, isObject, _set) {
|
||||
|
||||
// set the value in given path
|
||||
function set (obj, path, value) {
|
||||
if (!isObject(obj) || !isArray(path)) return obj;
|
||||
if (path.length === 0) return obj;
|
||||
|
||||
_set(obj, path, value);
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
return set;
|
||||
|
||||
});
|
Reference in New Issue
Block a user