odin-js-fundamentals-part-5/node_modules/uuid/dist/esm-node/validate.js

7 lines
141 B
JavaScript
Raw Permalink Normal View History

2024-01-11 08:52:05 +00:00
import REGEX from './regex.js';
function validate(uuid) {
return typeof uuid === 'string' && REGEX.test(uuid);
}
export default validate;