I have 5 loops, one inside the other:
for (int k; k< files.length; k++){
var subFiles = files[k];
for (int t; t<subFiles.length; t++){
call(files[k], subFiles[t]);
... and so on
}
}
is there an elegant way to do it? I think about recursion, but I am concerned about heap memory.
The application is written in node.js.
files- make it less complex, split on several objects and iterate over it.