[Vuejs]-How To Check In Array Vuejs

0👍

Yes, There’s a way

function (row) {
   return this.headings.reduce((res, heading) => res &= row.hasOwnProperty(heading), true)
}

This method should return true – if the row has the heading.

Leave a comment