Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
Just noticed there is an `isObject` utility function
  • Loading branch information
stuymedova authored Nov 27, 2023
1 parent c339258 commit 89eac05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function print(value: any): string {
return value.toString()
}

return value instanceof Object ? JSON.stringify(value) : `${value}`
return isObject(value) ? JSON.stringify(value) : `${value}`
}

/**
Expand Down

0 comments on commit 89eac05

Please sign in to comment.