main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
316 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | const validate_js_1 = require("./validate.js");
|
---|
4 | function version(uuid) {
|
---|
5 | if (!(0, validate_js_1.default)(uuid)) {
|
---|
6 | throw TypeError('Invalid UUID');
|
---|
7 | }
|
---|
8 | return parseInt(uuid.slice(14, 15), 16);
|
---|
9 | }
|
---|
10 | exports.default = version;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.