mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Review fixes
This commit is contained in:
parent
9cce9b572e
commit
12a93fc372
2 changed files with 2 additions and 7 deletions
|
@ -751,7 +751,7 @@ export const toIterable = <T>(
|
|||
export const toArray = <T>(
|
||||
values: readonly T[] | ReadonlyMap<string, T>,
|
||||
): T[] => {
|
||||
return Array.from(toIterable(values));
|
||||
return Array.isArray(values) ? values : Array.from(toIterable(values));
|
||||
};
|
||||
|
||||
export const isTestEnv = () => import.meta.env.MODE === ENV.TEST;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue