function find (
  list /* : NodejsVersion[] */,
  version /* : string */
) /* : NodejsVersion */ {
  for (let v = 0, vLength = list.length; v < vLength; v += 1) {
    const candidate = list[v]
    if (candidate.version === version) {
      return candidate
    }
  }
  throw new Error(`version ${version} not listed`)
}
function find (
  list ,
  version 
)  {
  for (let v = 0, vLength = list.length; v < vLength; v += 1) {
    const candidate = list[v]
    if (candidate.version === version) {
      return candidate
    }
  }
  throw new Error(`version ${version} not listed`)
}
function find ( list /* : NodejsVersion[] */ , version /* : string */ ) /* : NodejsVersion */ { for ( let v = 0 , vLength = list . length ; v < vLength ; v += 1 ) { const candidate = list [ v ] if ( candidate . version === version ) { return candidate } } throw new Error ( ` ${ version } ` ) }
/* ::
export type NodejsVersion = {
version: string;
date: string;
files: string[];
modules: string;
lts: boolean | string;
};
/ * :: export type NodejsVersion = { version : string ; date : string ; files : string [] ; modules : string ; lts : boolean | string ; } ;