function arrayToGlsl(array) {
  if (array.length < 2 || array.length > 4) {
    throw new Error(
      '`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.',
    );
  }
  return `vec${array.length}(${array.map(numberToGlsl).join(', ')})`;
}
Will return the number array as a float with a dot separator, concatenated with ', '.
@param {Array<number>} array Numerical values array.
@return {string} The array as a vector, e. g.: `vec3(1.0, 2.0, 3.0)`.