JS Hapus Comma End

str = str.replace(/,\s*$/, "");
Borma