source:
imaps-frontend/node_modules/uuid/dist/esm/version.js
Last change on this file was 79a0317, checked in by , 4 days ago | |
---|---|
|
|
File size: 208 bytes |
Rev | Line | |
---|---|---|
[79a0317] | 1 | import validate from './validate.js'; |
2 | function version(uuid) { | |
3 | if (!validate(uuid)) { | |
4 | throw TypeError('Invalid UUID'); | |
5 | } | |
6 | return parseInt(uuid.slice(14, 15), 16); | |
7 | } | |
8 | export default version; |
Note:
See TracBrowser
for help on using the repository browser.