src/primitives.js
function createBufferFunc(fn) {
  return function(gl) {
    const arrays = fn.apply(this, Array.prototype.slice.call(arguments, 1));
    return attributes.createBuffersFromArrays(gl, arrays);
  };
}
function createBufferFunc(fn) {
  return function(gl) {
    const arrays = fn.apply(this, Array.prototype.slice.call(arguments, 1));
    return attributes.createBuffersFromArrays(gl, arrays);
  };
}
function createBufferFunc ( fn ) { return function ( gl ) { const arrays = fn . apply ( this , Array . prototype . slice . call ( arguments , 1 ) ) ; return attributes . createBuffersFromArrays ( gl , arrays ) ; } ; }
creates a function that calls fn to create vertices and then
creates a buffers for them
@private
creates a function that calls fn to create vertices and then creates a buffers for them