Skip to content

Commit

Permalink
Add type predicate to node:util#isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored and anonrig committed Feb 3, 2025
1 parent acf620e commit a7e3a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export function isDeepStrictEqual(a: unknown, b: unknown): boolean {
return _isDeepStrictEqual(a, b);
}

export function isArray(a: unknown): boolean {
export function isArray(a: unknown): a is Array<any> {
return Array.isArray(a);
}

Expand Down

0 comments on commit a7e3a57

Please sign in to comment.