function hasVersion (version, versions) {
  for (let testVersion of versions) {
    if (testVersion.version === version) return true
  }
  return false
}
// Return whether the specified version is in list of specified versions.
Return whether the specified version is in list of specified versions.
Return whether the specified version is in list of specified versions .
function hasVersion (version, versions) {
  for (let testVersion of versions) {
    if (testVersion.version === version) return true
  }
  return false
}
function hasVersion ( version , versions ) { for ( let testVersion of versions ) { if ( testVersion . version === version ) return true } return false }
Return whether the specified version is in list of specified versions.
Return whether the specified version is in list of specified versions .