function isDataView
Jump to headingisDataView(object: unknown): object is DataView
Returns true
if the value is a built-in DataView
instance.
const ab = new ArrayBuffer(20);
util.types.isDataView(new DataView(ab)); // Returns true
util.types.isDataView(new Float64Array()); // Returns false
See also ArrayBuffer.isView()
.
Parameters Jump to heading
Jump to headingobject: unknown
Return Type Jump to heading
object is DataView