Prior usage of async.reduce "faked recursion" by mutating the accumulator (referred to as "memo" by async).
Newer versions of async disregard this mutation, breaking the functionality of listSubTreeBFS.
Here the method is rewritten with actual recursion.
Prior usage of
async.reduce
"faked recursion" by mutating the accumulator (referred to as "memo" by async). Newer versions of async disregard this mutation, breaking the functionality oflistSubTreeBFS
.Here the method is rewritten with actual recursion.