Skip to content

Commit aca6a7d

Browse files
committed
Added missing docs for mergeObjectsAndSortKeys
1 parent 7efffc7 commit aca6a7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function getSource(compilation, name) {
2525
/**
2626
* Merges the provided objects, ensuring that the resulting object has its properties in sorted order.
2727
* @template T
28-
* @param {T} obj1
29-
* @param {Partial<T> | undefined} obj2
30-
* @returns {*}
28+
* @param {T} obj1 First object to merge.
29+
* @param {Partial<T> | undefined} obj2 Second object to merge, can be undefined.
30+
* @returns {*} A new object containing the merged properties of obj1 and obj2, with keys sorted.
3131
*/
3232
function mergeObjectsAndSortKeys(obj1, obj2) {
3333
const mergedObj = Object.assign({}, obj1, obj2);

0 commit comments

Comments
 (0)