I’m currently using the function in my latest post #20… this was created after using some of the ES6 code from above and filtered through Babel.
I also realized today after some reading that the function I mention in #20 is what we call a Recursive Function
if that is correct?
Is that is why we don’t have a forEach
or each
to iterate through the data - the function does the repetition?
You’d do this only once when retrieving the data. Of course, even better would be to have such a UID in the original data though.
So what do you suggest?
Add a unique index as I have done in #22 or rebuild the function using forEach?
Thanks, Barry