The EXT_disjoint_timer_query.isQueryEXT() method of the WebGL API returns true if the passed object is a WebGLQuery object.
isQueryEXT(query)queryA WebGLQuery object to test.
A GLboolean indicating whether the given object is a WebGLQuery object (true) or not (false).
const ext = gl.getExtension("EXT_disjoint_timer_query");
const query = ext.createQueryEXT();
// …
ext.isQueryEXT(query);