Skip to content

Commit 38b266d

Browse files
gnidanCopilot
andauthored
Switch instanceof Array to Array.isArray()
Co-authored-by: Copilot <[email protected]>
1 parent 64f159c commit 38b266d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/format/src/types/program/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export namespace Context {
8989

9090
export const isPick = (value: unknown): value is Pick =>
9191
typeof value === "object" && !!value &&
92-
"pick" in value && value.pick instanceof Array &&
92+
"pick" in value && Array.isArray(value.pick) &&
9393
value.pick.every(isContext);
9494

9595
export interface Gather {
@@ -98,7 +98,7 @@ export namespace Context {
9898

9999
export const isGather = (value: unknown): value is Gather =>
100100
typeof value === "object" && !!value &&
101-
"gather" in value && value.gather instanceof Array &&
101+
"gather" in value && Array.isArray(value.gather) &&
102102
value.gather.every(isContext);
103103

104104
export interface Frame {

0 commit comments

Comments
 (0)