I've got an array like this:
const rawdata = [
  {
    top_feature_col: "s9",
    top_feature_row: 1,
    data: [{ cluster: 0, value: 151508, opportunity_perc: 69 }]
  },
  {
    top_feature_col: "s9",
    top_feature_row: 2,
    data: [{ cluster: 0, value: 127518, opportunity_perc: 70 }]
  },
  {
    top_feature_col: "s9",
    top_feature_row: 2,
    data: [{ cluster: 1, value: 12668, opportunity_perc: 40 }]
  }
];I'd like to filter where opportunity_perc >= 50 but I don't know how to do it.
The result should be:
const result = [
  {
    top_feature_col: "s9",
    top_feature_row: 1,
    data: [{ cluster: 0, value: 151508, opportunity_perc: 69 }]
  },
  {
    top_feature_col: "s9",
    top_feature_row: 2,
    data: [{ cluster: 0, value: 127518, opportunity_perc: 70 }]
  }
]; 
     
     
     
    