nextVersion
function nextVersion(existing): string;Defined in: snapshot.ts:98
Compute the next v{n} version given the set of existing version strings.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
existing |
string[] |
Returns
Section titled “Returns”string
Example
Section titled “Example”import { nextVersion } from "@xtandard/flags";
nextVersion([]); // → "v1"nextVersion(["v1", "v2"]); // → "v3"