Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
var isArray = require('./isArray.js');
var isObject = require('./isObject.js');
var _set = require('./_set.js');
// 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;
}
module.exports = set;