mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
@@ -2828,7 +2828,19 @@ pub const JSValue = enum(JSValueReprInt) {
|
||||
|
||||
pub fn isTypedArray(this: JSType) bool {
|
||||
return switch (this) {
|
||||
.Int8Array, .Int16Array, .Int32Array, .Uint8Array, .Uint8ClampedArray, .Uint16Array, .Uint32Array, .Float32Array, .Float64Array, .ArrayBuffer => true,
|
||||
.ArrayBuffer,
|
||||
.BigInt64Array,
|
||||
.BigUint64Array,
|
||||
.Float32Array,
|
||||
.Float64Array,
|
||||
.Int16Array,
|
||||
.Int32Array,
|
||||
.Int8Array,
|
||||
.Uint16Array,
|
||||
.Uint32Array,
|
||||
.Uint8Array,
|
||||
.Uint8ClampedArray,
|
||||
=> true,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user