UNPKG

@rishavtandon93/ng-select-aria

Version:

Angular ng-select - All in One UI Select, Multiselect and Autocomplete

9 lines (8 loc) 296 B
export function newId() { // First character is an 'a', it's good practice to tag id to begin with a letter return 'axxxxxxxxxxx'.replace(/[x]/g, () => { // eslint-disable-next-line no-bitwise const val = Math.random() * 16 | 0; return val.toString(16); }); }