Function isArrayBuffer

  • Checks if value is classified as an ArrayBuffer object.

    Parameters

    • value: any

      The value to check.

    Returns value is ArrayBuffer

    Returns true if value is an array buffer, else false.

    5.5.0

    isArrayBuffer(new ArrayBuffer(2))
    // => true

    isArrayBuffer(new Array(2))
    // => false