1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 12:32:31 +01:00
Radarr/frontend/src/Utilities/getUniqueElementId.js
2019-06-11 22:06:43 -04:00

8 lines
163 B
JavaScript

let i = 0;
// returns a HTML 4.0 compliant element IDs (http://stackoverflow.com/a/79022)
export default function getUniqueElementId() {
return `id-${i++}`;
}