diff options
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfills/internal/util/types.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/util/types.ts b/ext/node/polyfills/internal/util/types.ts index 30a25e2e5..b8aca5968 100644 --- a/ext/node/polyfills/internal/util/types.ts +++ b/ext/node/polyfills/internal/util/types.ts @@ -58,6 +58,10 @@ export function isBigUint64Array(value: unknown): value is BigUint64Array { return TypedArrayPrototypeGetSymbolToStringTag(value) === "BigUint64Array"; } +export function isFloat16Array(value: unknown): value is Float16Array { + return TypedArrayPrototypeGetSymbolToStringTag(value) === "Float16Array"; +} + export function isFloat32Array(value: unknown): value is Float32Array { return TypedArrayPrototypeGetSymbolToStringTag(value) === "Float32Array"; } |