Note: This feature is available in Web Workers.
The WebGL2RenderingContext.isVertexArray() method of the WebGL API returns true if the passed object is a valid WebGLVertexArrayObject object.
isVertexArray(vertexArray)vertexArrayA WebGLVertexArrayObject (VAO) object to test.
A GLboolean indicating whether the given object is a valid WebGLVertexArrayObject object (true) or not (false).
const vao = gl.createVertexArray();
gl.bindVertexArray(vao);
// …
gl.isVertexArray(vao);