UNPKG

angular2-data-table

Version:

angular2-data-table is a Angular2 component for presenting large and complex data.

8 lines (7 loc) 237 B
/** * Creates a unique object id. * http://stackoverflow.com/questions/6248666/how-to-generate-short-uid-like-ax4j9z-in-js */ export function id() { return ('0000' + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4); }