📜  以角度搜索全名 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:16.293000             🧑  作者: Mango

代码示例1
const response = forkJoin([
  this.service.getUserByFirstName(this.firstName),
  this.service.getUserByLastName(this.lastName)
]);

response.subscribe(
  ([firstNameUsers, lastNameUsers]) => this.users = lodash.intersectionWith(firstNameUsers, lastNameUsers, lodash.isEqual)
);