Javascript – Can't save temp result inside recursion function
I'm trying to write a recursive function that receives an object with two branches of nested objects, and at the output returns one object with two properties that contain an array with all the specified values of the input object.…