Icard/angular-clarity-master(work.../node_modules/uuid/dist/esm-browser/version.js

11 lines
200 B
JavaScript
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
import validate from './validate.js';
function version(uuid) {
if (!validate(uuid)) {
throw TypeError('Invalid UUID');
}
return parseInt(uuid.substr(14, 1), 16);
}
export default version;