MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / commanumb

Function commanumb

api/prettydiff-webtool.ts:3082–3100  ·  view source on GitHub ↗
(numb)

Source from the content-addressed store, hash-verified

3080 parent:HTMLElement,
3081 chromeSave:boolean = false;
3082 const commanumb = function dom_event_execute_app_renderOutput_commanumb(numb):string {
3083 let str:string = "",
3084 len:number = 0,
3085 arr:string[] = [];
3086 if (typeof numb !== "number" || isNaN(numb) === true) {
3087 return numb;
3088 }
3089 str = String(numb);
3090 if (str.length < 4) {
3091 return str;
3092 }
3093 arr = str.split("");
3094 len = str.length - 4
3095 do {
3096 arr[len] = `${arr[len]},`;
3097 len = len - 3;
3098 } while (len > -1);
3099 return arr.join("");
3100 };
3101 meta.time = (function dom_event_execute_app_renderOutput_proctime() {
3102 const plural = function dom_event_execute_app_renderOutput_proctime_plural(x:number, y:string):string {
3103 let a = x + y;

Callers 1

renderOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected