单项选择题

[1, 2, 3].forEach(function(item, index, arr) {console.log(item, index, arr);});forEach属于什么模式?()

A.迭代器模式
B.代理模式
C.策略模式
D.工厂模式