function isPrerelease(version){
    const preRelComp = semver.prerelease(version)
    return preRelComp != null && preRelComp.length > 0
}
Return whether or not the provided version is a prerelease.

@param {string} version The semver version to test.
@returns {boolean} True if the version is a prerelease, otherwise false.