UNPKG

@thi.ng/checks

Version:

Collection of 70+ type, feature & value checks

9 lines 551 B
export type TypedArray = IntArray | UintArray | FloatArray; export type FloatArray = Float32Array | Float64Array; export type IntArray = Int8Array | Int16Array | Int32Array; export type UintArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array; export declare const isTypedArray: (x: any) => x is TypedArray; export declare const isIntArray: (x: any) => x is IntArray; export declare const isUintArray: (x: any) => x is UintArray; export declare const isFloatArray: (x: any) => x is FloatArray; //# sourceMappingURL=is-typedarray.d.ts.map