How do I return an item from a NodeList?

  • 0
    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

  • 2 Answers
  • 0
    forEach doesn't return anything, just calls a function on each element.
    Anonymous

  • 0
    Array.from (nodes) .find (...)
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!