The WebGL2RenderingContext.drawArraysInstanced() method of the WebGL 2 API renders primitives from array data like the gl.drawArrays() method. In addition, it can execute multiple instances of the range of elements.
Note: When using WebGL 1, the ANGLE_instanced_arrays extension can provide this method, too.