function trimLastZeros(parts) {
  while (parts.length > 1 && parts[parts.length - 1].trim() === '0') {
    parts.pop()
  }
}
Removes all trailing zeros from a version number part array.

@param {string[]} parts - parts