function linearRingssAreOriented(
  flatCoordinates,
  offset,
  endss,
  stride,
  right,
) {
  for (let i = 0, ii = endss.length; i < ii; ++i) {
    const ends = endss[i];
    if (!linearRingsAreOriented(flatCoordinates, offset, ends, stride, right)) {
      return false;
    }
    if (ends.length) {
      offset = ends[ends.length - 1];
    }
  }
  return true;
}
Determines if linear rings are oriented.  By default, left-hand orientation
is tested (first ring must be clockwise, remaining rings counter-clockwise).
To test for right-hand orientation, 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] Test for right-hand orientation
    (counter-clockwise exterior ring and clockwise interior rings).
@return {boolean} Rings are correctly oriented.