I have three buttons :
All (Reals+ Fakes), Reals(total count), Fakes(total count)
I am trying to get the total count of my total feeds which will be shown in
As per your comments, to retrieve the count of Feed_A and Feed_B, you can make use of Array#filter and Array#length:
Feed_A
Feed_B
const feedACount = feeds.filter(feed => feed.feed_type !== '').length; const feedBCount = feeds.length - feedACount;