docs: function createBufferInfoFromArrays(gl, arrays, opt_mapping) {
      var bufferInfo = {
        attribs: createAttribsFromArrays(gl, arrays, opt_mapping),
      };
      var indices = arrays.indices;
      if (indices) {
        indices = makeTypedArray(indices, "indices");
        bufferInfo.indices = createBufferFromTypedArray(gl, indices, gl.ELEMENT_ARRAY_BUFFER);
        bufferInfo.numElements = indices.length;
      } else {
        bufferInfo.numElements = getNumElementsFromNonIndexedArrays(arrays);
      }
  
      return bufferInfo;
    }