mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-01-08 04:36:58 -06:00
Alejandro Lembke Barrientos
55b0b9f2c3
Creating the first initial version of the create component library.
11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
const PRName = function () {
|
|
let ID = '';
|
|
// let characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
const characters = '0123456789';
|
|
for ( let i = 0; i < 6; i++ ) {
|
|
ID += characters.charAt(Math.floor(Math.random() * 10));
|
|
}
|
|
return 'PR-'+ID;
|
|
};
|
|
|
|
console.log(PRName());
|