Function isTypedArray

  • Checks if value is classified as a typed array.

    Type Parameters

    • Value

    Parameters

    Returns unknown extends Value
        ? boolean
        : Value extends TypedArrayT
            ? true
            : false

    Since

    1.0.0

    Example

    isTypedArray(new Uint8Array);
    // => true

    Example

    isTypedArray([]);
    // => false