Я новичок в lodash и Javascript в целом. Я использую нодджс. Я использую функцию фильтра lodash для фильтрации некоторого содержимого в моей коллекции.
Вот фрагмент
filteredrows = _.filter(rows, function(row, index){
//here I need to call some asynchronous function which checks the row
//the return value of this asynchronous function will determine whether to return true or false for the filter function.
});
Мой вопрос в том, как мне это сделать? с помощью замыкания? Можно ли это сделать в функции фильтра lodash? Заранее спасибо.
_.filter
- person Felix Kling   schedule 11.09.2014