Recursive function returns undefined regardless of enough return statements
问题 I have read a few questions and answers on it already. It looks like my recursive function has got enough "return" statements, so... I do not know why it returns undefined... I have added extra log statement to show that the function itself finds the element, but does not return it... let animals = [ { name: "dogs", id: 1, children: [ { name: "lessie", id: 2 }, { name: "bark-a-lot", id: 3 } ] }, { name: "cats", id: 4, children: [ { name: "meows-a-lot", id: 5, children: [ { name: "meows-a-lot