observable

来源:互联网 发布:淘宝文案格式模板 编辑:程序博客网 时间:2024/05/18 10:20

1.observable.partition将输入根据函数分为两部分,前者为符合函数条件的,后者为不符合条件的

例如: let [customerSource, tenantSource] = this.formGroup.valueChanges.partition(type => type !== "hudheud")

原创粉丝点击