Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从这样的流中:
得到这样的东西:
[ "sales", "users"]
感谢来自 GitHub 的 nissbran
fromStream('$streams') .when({ $init: function () { return [] }, $any: function (s, e) { var category = e.streamId.split("-")[0]; if (s.includes(category)) return; s.push(category); } })