doc: dom/core: add .forEach() method