The OES_vertex_array_object.isVertexArrayOES() method of the WebGL API returns true if the passed object is a WebGLVertexArrayObject object.
isVertexArrayOES(arrayObject)arrayObjectA WebGLVertexArrayObject (VAO) object to test.
A GLboolean indicating whether the given object is a WebGLVertexArrayObject object (true) or not (false).
const ext = gl.getExtension("OES_vertex_array_object");
const vao = ext.createVertexArrayOES();
ext.bindVertexArrayOES(vao);
// …
ext.isVertexArrayOES(vao);