source: trip-planner-front/node_modules/uuid/dist/esm-node/version.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 200 bytes
RevLine 
[6a3a178]1import validate from './validate.js';
2
3function version(uuid) {
4 if (!validate(uuid)) {
5 throw TypeError('Invalid UUID');
6 }
7
8 return parseInt(uuid.substr(14, 1), 16);
9}
10
11export default version;
Note: See TracBrowser for help on using the repository browser.