validate.js 141 B

1234567
  1. import REGEX from './regex.js';
  2. function validate(uuid) {
  3. return typeof uuid === 'string' && REGEX.test(uuid);
  4. }
  5. export default validate;