Skip to content

Commit

Permalink
fix(toArray): simplify impl (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon authored Dec 1, 2024
1 parent 6def147 commit 6550349
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/compat/util/toArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export function toArray(value?: unknown): any[] {
return Array.from(value);
}

if (typeof value === 'string') {
return value.split('');
}

if (typeof value === 'object') {
return Object.values(value);
}
Expand Down

0 comments on commit 6550349

Please sign in to comment.