Skip to content

Commit

Permalink
fix(checks): update isTypedArray() to return boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 8, 2023
1 parent 020ef6c commit 2c0f72f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/checks/src/is-typedarray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type TypedArray =
| Uint32Array;

export const isTypedArray = (x: any): x is TypedArray =>
x &&
!!x &&
(x instanceof Float32Array ||
x instanceof Float64Array ||
x instanceof Uint32Array ||
Expand Down

0 comments on commit 2c0f72f

Please sign in to comment.