function orientLinearRingsArray(
  flatCoordinates,
  offset,
  endss,
  stride,
  right,
) {
  for (let i = 0, ii = endss.length; i < ii; ++i) {
    offset = orientLinearRings(
      flatCoordinates,
      offset,
      endss[i],
      stride,
      right,
    );
  }
  return offset;
}
Orient coordinates in a flat array of linear rings.  By default, rings
are oriented following the left-hand rule (clockwise for exterior and
counter-clockwise for interior rings).  To orient according to the
right-hand rule, use the `right` argument.

@param {Array<number>} flatCoordinates Flat coordinates.
@param {number} offset Offset.
@param {Array<Array<number>>} endss Array of array of end indexes.
@param {number} stride Stride.
@param {boolean} [right] Follow the right-hand rule for orientation.
@return {number} End.