latestVersion

Picks the newest of versions by semantic-version precedence.

Return

the newest version as it was given, or null when none is a semantic version

Parameters

versions

version names, e.g. the version directories of a package