I’m trying to reverse nodesBetween
so that it scans up the document, rather than down. Is there any way to write it as nodesBetween(to, from,...)
rather than nodesBetween(from, to, ...)
?
No. You’d have to write your own custom iteration function.
1 Like