code: function(gl,program,buffers){
    const attributes = program.attributes;
    for(let id in attributes){
      if(!buffers[id])throw new Error("Buffer does not exist");
      bindArrayAttribute(gl, buffers[id].data, program.attributes[id], buffers[id].numComponents);
    }    
  }
docs: const unBindArrayAttribute=function(gl, buffer, attribute, numComponents) { gl.bindBuffer(gl.ARRAY_BUFFER, buffer); gl.disableVertexAttribArray(attribute); gl.vertexAttribPointer(attribute, numComponents, gl.FLOAT, false, 0, 0); } module.exports.unBindArrayAttribute = unBindArrayAttribute;