function checkMaxVersion(version, maxVersion) {
    return (
        version &&
        maxVersion &&
        semver.satisfies(
            normalizeVersion(version),
            '<=' + normalizeVersion(maxVersion),
            {includePrerelease: true}
        )
    );
}
/**
 * Check if a version string meets a maximum version
 * @return boolean
 */
Check if a version string meets a maximum version
@return boolean
Check if a version string meets a maximum version @return boolean
function checkMaxVersion(version, maxVersion) {
    return (
        version &&
        maxVersion &&
        semver.satisfies(
            normalizeVersion(version),
            '<=' + normalizeVersion(maxVersion),
            {includePrerelease: true}
        )
    );
}
function checkMaxVersion ( version , maxVersion ) { return ( version && maxVersion && semver . satisfies ( normalizeVersion ( version ) , '<=' + normalizeVersion ( maxVersion ) , { includePrerelease : true } ) ) ; }
Check if a version string meets a maximum version
 @return boolean
Check if a version string meets a maximum version @return boolean