We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c246fc commit 6dcaa86Copy full SHA for 6dcaa86
src/crank.ts
@@ -27,9 +27,7 @@ function arrayify<T>(
27
? value
28
: typeof value === "string" ||
29
typeof (value as any)[Symbol.iterator] !== "function"
30
- ? [value]
31
- : // TODO: inference broke in TypeScript 3.9.
32
- [...(value as any)];
+ ? [value as T] : [...value as any];
33
}
34
35
function isIteratorLike(
0 commit comments