📜  角度数组过滤器打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:26.889000             🧑  作者: Mango

代码示例1
ngOnInit() {
  this.booksByStoreID = this.books.filter(
          book => book.store_id === this.store.id);
}