使用Highland.js将另一数据流与另一数据流混合

问题描述

我有两个Highland流:

import hl from 'highland'

const accounts = hl([
  {id: 1,name: "Bob"},{id: 2,name: "Chris"},]);

const accountData = hl([
  {id: 1,age: 21},age: 43},]);

我想映射到accounts流并合并来自accountData的额外数据,所以结果看起来像这样:

Highland.Stream<[
  {id: 1,name: "Bob",name: "Chris",]>

这对于普通数组来说非常简单,但是我想知道使用流时是否有可能。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)