Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • Your error is happening in the for loop Commented Apr 24, 2018 at 16:30
  • Clarification: you have if (res.json()==! 'undefined') which is not the same as !== undefined. Was this intentional? Commented Apr 24, 2018 at 16:31
  • 2
    if (res.json()==! 'undefined') makes no sense. Also you cannot call .json() twice on the same response Commented Apr 24, 2018 at 16:31
  • I've editted my suggestion, where I suggest you call res.json in your own fetch function Commented Apr 24, 2018 at 16:31
  • 1
    Clarification: You have for (let item of ext) in a spot where ext might be undefined. Is this intentional? Commented Apr 24, 2018 at 16:32