function checkLessThanOrEqual(a, b) {
  const result = compareComponents(a, b);
  return result === -1 || result === 0;
}
Checks whether `a` is less than or equal to `b`.

@param {array<string>} a
@param {array<string>} b
@returns {boolean}