Vue.js filter id on array

How can I filter like this on vue.js?

$followid = [1,2,3,4,4,5];
foreach ($array as $element)
   if (in_array($element->id, $followid))
   endif
endforeach

84 thoughts on “Vue.js filter id on array”

Leave a Comment