Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
stuymedova authored Nov 27, 2023
1 parent 89eac05 commit 50727d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ export function print(value: any): string {
if (typeof value === 'symbol') {
return value.toString()
}

Check failure on line 41 in src/utils.ts

View workflow job for this annotation

GitHub Actions / ci (14.x)

Delete `··`

Check failure on line 41 in src/utils.ts

View workflow job for this annotation

GitHub Actions / ci (16.x)

Delete `··`

Check failure on line 41 in src/utils.ts

View workflow job for this annotation

GitHub Actions / ci (18.x)

Delete `··`
if (value instanceof Object) {
return JSON.stringify(value)
}

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

/**
Expand Down

0 comments on commit 50727d0

Please sign in to comment.