UNPKG

uuid

Version:
3 lines (2 loc) 136 B
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); export default { randomUUID };