feat(NodeAttrs): Implement forEach to iterate over attributes