Skip to content

Commit 31b41b7

Browse files
committed
Change isArray to Array.isArray
1 parent 2cd0859 commit 31b41b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/LuaTransformer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import * as tstl from "./LuaAST";
77
import {LuaLib, LuaLibFeature} from "./LuaLib";
88
import {ContextType, TSHelper as tsHelper} from "./TSHelper";
99
import {TSTLErrors} from "./TSTLErrors";
10-
import { isArray } from "util";
1110

1211
export type StatementVisitResult = tstl.Statement | tstl.Statement[] | undefined;
1312
export type ExpressionVisitResult = tstl.Expression | undefined;
@@ -3128,7 +3127,7 @@ export class LuaTransformer {
31283127
|| this.currentNamespace
31293128
|| (tsOriginal && tsHelper.findFirstNodeAbove(tsOriginal, ts.isFunctionLike))
31303129
) {
3131-
if (!isArray(lhs)) {
3130+
if (!Array.isArray(lhs)) {
31323131
lhs = [lhs];
31333132
}
31343133
const shouldExport = lhs.some(i => this.isIdentifierExported(i.text));

0 commit comments

Comments
 (0)