budibase/packages/bbui/src/utils/helpers.js

9 lines
175 B
JavaScript
Raw Normal View History

export const generateID = () => {
const rand = Math.random()
.toString(32)
.substring(2)
// Starts with a letter so that its a valid DOM ID
return `A${rand}`
}