es-toolkit 1.14.0-dev.412 → 1.14.0-dev.413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Merges the properties of the source object into the target object.
|
|
3
3
|
*
|
|
4
|
-
* You can provide a custom `merge` function to control how properties are merged.
|
|
4
|
+
* You can provide a custom `merge` function to control how properties are merged. It should return the value to be set in the target object.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* - `sourceValue`: The value of the property in the source object.
|
|
8
|
-
* - `key`: The key of the property being merged.
|
|
9
|
-
* - `target`: The target object.
|
|
10
|
-
* - `source`: The source object.
|
|
11
|
-
*
|
|
12
|
-
* The `merge` function should return the value to be set in the target object. If it returns `undefined`, a default deep merge will be applied for arrays and objects:
|
|
6
|
+
* If it returns `undefined`, a default deep merge will be applied for arrays and objects:
|
|
13
7
|
*
|
|
14
8
|
* - If a property in the source object is an array or an object and the corresponding property in the target object is also an array or object, they will be merged.
|
|
15
9
|
* - If a property in the source object is undefined, it will not overwrite a defined property in the target object.
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Merges the properties of the source object into the target object.
|
|
3
3
|
*
|
|
4
|
-
* You can provide a custom `merge` function to control how properties are merged.
|
|
4
|
+
* You can provide a custom `merge` function to control how properties are merged. It should return the value to be set in the target object.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* - `sourceValue`: The value of the property in the source object.
|
|
8
|
-
* - `key`: The key of the property being merged.
|
|
9
|
-
* - `target`: The target object.
|
|
10
|
-
* - `source`: The source object.
|
|
11
|
-
*
|
|
12
|
-
* The `merge` function should return the value to be set in the target object. If it returns `undefined`, a default deep merge will be applied for arrays and objects:
|
|
6
|
+
* If it returns `undefined`, a default deep merge will be applied for arrays and objects:
|
|
13
7
|
*
|
|
14
8
|
* - If a property in the source object is an array or an object and the corresponding property in the target object is also an array or object, they will be merged.
|
|
15
9
|
* - If a property in the source object is undefined, it will not overwrite a defined property in the target object.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.14.0-dev.
|
|
4
|
+
"version": "1.14.0-dev.413+8912165e",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|