配列操作
配列から抽出 filter
配列の条件にあうものだけを別の配列に入れるconst obj = this.centers;const res = obj.filter(item => item.oya === this.filter_oya);this.center2 = res;
配列の条件にあうものだけを別の配列に入れるconst obj = this.centers;const res = obj.filter(item => item.oya === this.filter_oya);this.center2 = res;