Javascript maximum call stack size even though recursive function call itself with an accumulator
I have an object whose value can be any type. const data = { a: { aa: 50, ab: 'hello', ac: 'xx_1' }, b: 50, c: [ { ca: 100, cb: 'by', cc: 'xx_2' }, { ca: 101, cb: 'by1',…