How do I return an item from a NodeList?
-
I want to return an item from the nodelist that matches the given name. But for some reason it returns undefined
JavaScript Blake Cunningham, Apr 7, 2020 -
forEach doesn't return anything, just calls a function on each element.Anonymous
-
Array.from (nodes) .find (...)
Anonymous
2 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!