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
forEach doesn't return anything, just calls a function on each element.Anonymous
Array.from (nodes) .find (...)Anonymous
To place the code, please use CodePen or similar tool. Thanks you!