Skip to content

Commit e0cdd3b

Browse files
committed
fix(linting): prefer typeof syntax
1 parent 91d1fb2 commit e0cdd3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composables/useInputEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function useInputEditor() {
5858
// cleanup empty values
5959
for (const key in result) {
6060
const value = result[key]
61-
if ((typeof value === 'string' || value instanceof String)) {
61+
if ((typeof value === 'string' || typeof value === 'string')) {
6262
if (value.trim().length === 0)
6363
result[key] = undefined
6464
}

0 commit comments

Comments
 (0)