1
Fork 0
tildes-reextended/source/utilities/version.ts

8 lines
197 B
TypeScript

/**
* Returns a version string as a number by removing the periods.
* @param version
*/
export function versionAsNumber(version: string): number {
return Number(version.replace(/\./g, ''));
}