Skip to main content

Timeline for answer to How to use Array.from with a XPathResult? by Explosion Pills

Current License: CC BY-SA 4.0

Post Revisions

4 events
when toggle format what by license comment
Feb 7, 2025 at 0:32 history edited Avindra Goolcharan CC BY-SA 4.0
deduplicate iterateNext() call
Jun 27, 2020 at 19:02 comment added Chinoto Vokro To avoid duplication and (imo) make it clearer, you could instead do const nodes = []; let node; while (node = xPathResult.iterateNext()) {nodes.push(node);}. Too bad you can't just say while (const node = xPathResult.iterateNext()) {...} since the value isn't used outside the loop.
Dec 13, 2017 at 16:25 vote accept ceving
Oct 30, 2017 at 14:27 history answered Explosion Pills CC BY-SA 3.0