utils/utils.js
function (existingVersionStrings, newVersion, newCodeName, versionOnly = false) {
  if (!existingVersionStrings || existingVersionStrings.length === 0) return -1
  return existingVersionStrings.findIndex((version) => {
    return hasNodeVersion(version, newVersion, newCodeName, versionOnly)
  })
}
function (existingVersionStrings, newVersion, newCodeName, versionOnly = false) {
  if (!existingVersionStrings || existingVersionStrings.length === 0) return -1
  return existingVersionStrings.findIndex((version) => {
    return hasNodeVersion(version, newVersion, newCodeName, versionOnly)
  })
}
existingVersionStrings is just an array of strings: ['- 7', '- 8'] or ['9']  or ['v8.10'] returns an index