lib: change forEach to for-loop
for-loop is faster than forEach. In performance-strict environment like bootstrap_node.js this matters.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
lib