Function isBuffer

  • It will determine whether the provided value is a Buffer or not.

    Parameters

    • value: unknown

    Returns value is Buffer

    Since

    1.0.0

    Example

    isBuffer(new Buffer(2));
    // => true

    Example

    isBuffer(new Uint8Array(2));
    // => false