依赖文件

This commit is contained in:
浅念
2025-03-20 17:35:53 +08:00
parent 634fe57349
commit 021ffc6052
1134 changed files with 137518 additions and 132 deletions
+15
View 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;
});