
CSS
- 7 ответов
- 0 вопросов
5
Вклад в тег
var beers ={
array:[{
...
},{
...
},{
..
}]
};
beers.reduceBeers = function(){
this.array = [];
this.array.reduce(function (all, item, index) {
if (item.locale === 'domestic') {
this.array.push(item);
}
return this.array;
}, []);
return this;
};