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 b1636c0 commit 586132cCopy full SHA for 586132c
src/lib/converter/converter.ts
@@ -145,7 +145,7 @@ export class Converter extends ChildableComponent<
145
entryPoints: readonly string[],
146
programs: ts.Program | readonly ts.Program[]
147
): ProjectReflection | undefined {
148
- programs = Array.isArray(programs) ? programs : [programs];
+ programs = programs instanceof Array ? programs : [programs];
149
this.externalPatternCache = void 0;
150
151
const project = new ProjectReflection(this.name);
src/lib/utils/array.ts
@@ -148,7 +148,7 @@ export function flatMap<T, U>(
for (const item of arr) {
const newItem = fn(item);
- if (Array.isArray(newItem)) {
+ if (newItem instanceof Array) {
152
result.push(...newItem);
153
} else {
154
result.push(newItem);
0 commit comments