const ThousandNum = num => num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
ThousandNum(20191024);

"20,191,024"