This commit is contained in:
marlon-erler
2024-07-07 13:43:18 +02:00
parent 58a663b925
commit a4633669cf
176 changed files with 10992 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import validate from './validate.js';
function version(uuid) {
if (!validate(uuid)) {
throw TypeError('Invalid UUID');
}
return parseInt(uuid.slice(14, 15), 16);
}
export default version;