To convert an iterable object to an array, use spreads … instead of Array.from
const nodes = [...foo];