ArrayBuffer.isView

Determines whether the passed value is an ArrayBuffer view, that is if it’s a typed array or a DataView.

Syntax

isView(value)

Parameters

A value to check.

Return value

Returns true if the value is a view, false if it’s not.

Example

ArrayBuffer.isView(new Uint8Array())
true