Skip to content

Commit

Permalink
jsdoc: improve typing of deepClone (#3575)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Sep 10, 2024
1 parent 0b8e06e commit 6ae5de2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,10 @@ function getServerName (host) {
}

/**
* @param {*} obj
* @returns {*}
* @function
* @template T
* @param {T} obj
* @returns {T}
*/
function deepClone (obj) {
return JSON.parse(JSON.stringify(obj))
Expand Down

0 comments on commit 6ae5de2

Please # to comment.