Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Meena committed Apr 30, 2024
1 parent 5c3b547 commit 338068d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/cloneObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export default function cloneObject<T>(source: T): T {

for (const key in source) {
// @ts-ignore:next-line
if ("jQuery" in window && window.jQuery && source[key] instanceof window.jQuery) {
if (
"jQuery" in window &&
window.jQuery &&
source[key] instanceof window.jQuery
) {
temp[key] = source[key];
} else {
temp[key] = cloneObject(source[key]);
Expand Down

0 comments on commit 338068d

Please sign in to comment.