Я перехожу от использования jQuery к созданию приложений в AngularJS. Он рекомендовал в количестве мест не смешивать код jQuery и Angular.
Одна вещь, которую я пропускаю, это функция jQuery $.map для массивов. Я знаю, что это можно переписать с помощью встроенной функции отображения , но это не реализовано во всех браузерах (в частности, IE < v9).
Итак, существует ли эквивалент Angular, или мне нужно вернуться к написанию for (var x = 0; x < foo; x += 1) {...}
, чтобы я мог остановить включение jQuery?
ОБНОВЛЕНИЕ Иногда знание того, что нужно искать, - это все, что вам нужно. Берги говорит: "Ищите полисы". Здесь справочное руководство (из команды Modernizr) за кучу ресурсов для создания современного кода работает на старых браузерах: HTML5 Cross Browser Polyfills