Какая из функций в следующем коде:
var theArr = [1, 2, 3];
theArr.map( () => {} ); // 1
var doArrow = () => {}; // 2
theArr.map(doArrow);
theArr.map(function() {}); // 3
theArr.map(function doThing() {}); // 4
является анонимной?
AS As For JS @asforjavascript · 3.08K subscribers var theArr = [1, 2, 3];
theArr.map( () => {} ); // 1
var doArrow = () => {}; // 2
theArr.map(doArrow);
theArr.map(function() {}); // 3
theArr.map(function doThing() {}); // 4