Filter arrays inside array on the basis of status

I have a array which contains multiple arrays. Sample data is as follows:

[
[
  {
    "id":1,
    "status":1
  },
   {
    "id":2,
    "status":2
  },
   {
    "id":3,
    "status":3
  },
   {
    "id":4,
    "status":4
  }
],
[
   {
    "id":5,
    "status":1
  },
   {
    "id":6,
    "status":2
  },
   {
    "id":7,
    "status":3
  },
   {
    "id":8,
    "status":4
  }
],
[
  {
    "id":8,
    "status":1
  },
   {
    "id":9,
    "status":1
  }
]
]

I am using PrimeNg checkbox. My code for it as follows:

<h5>Multiple</h5>
<div class="p-field-checkbox">
  <p-checkbox
    name="group1"
    value="New York"
    [(ngModel)]="selectedCities"
    inputId="ny"
  ></p-checkbox>
  <label for="ny">New York</label>
</div>
<div class="p-field-checkbox">
  <p-checkbox
    name="group1"
    value="San Francisco"
    [(ngModel)]="selectedCities"
    inputId="sf"
  ></p-checkbox>
  <label for="sf">San Francisco</label>
</div>
<div class="p-field-checkbox">
  <p-checkbox
    name="group1"
    value="Los Angeles"
    [(ngModel)]="selectedCities"
    inputId="la"
  ></p-checkbox>
  <label for="la">Los Angeles</label>
</div>
<div class="p-field-checkbox">
  <p-checkbox
    name="group1"
    value="Chicago"
    [(ngModel)]="selectedCities"
    inputId="ch"
  ></p-checkbox>
  <label for="ch">Chicago</label>
</div>

Stackblitz is as follows:

https://stackblitz.com/edit/primeng-checkbox-demo-d9kasz?file=src%2Fapp%2Fapp.component.html

I want to filter array such that if “New York” is selected then each internal array should have only elements with status 1.If “San Francisco” is selected then each internal array should have only elements with status 2. if “Los Angeles” is selected then each internal array should have only elements with status 3. If “Chicago” is selected then each internal array should have only elements with status 4. For example if “New York” is selected than final output should be as follows:

output : [
[
  {
    "id":1,
    "status":1
  }
],
[
   {
    "id":5,
    "status":1
  }
],
[
  {
    "id":8,
    "status":1
  },
   {
    "id":9,
    "status":1
  }
]
]

and so on for other elements. How can I do this?