function digits (ExcessAmt) {
return ExcessAmt.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
}
Call this function ,pass number and collect in any variable
return ExcessAmt.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
}
Call this function ,pass number and collect in any variable
No comments:
Post a Comment