Stream.jsJavaScript 的 Streams 实现
Stream.js 是 Lazy Object Streaming Pipeline 的 JavaScript 实现,灵感来自于 Java 8 Streams API
示例代码:
Stream(people) .filter({age: 23}) .flatMap("children") .map("firstName") .distinct() .filter(/a.*/i) .join(", ");
评论
Stream.js 是 Lazy Object Streaming Pipeline 的 JavaScript 实现,灵感来自于 Java 8 Streams API
示例代码:
Stream(people) .filter({age: 23}) .flatMap("children") .map("firstName") .distinct() .filter(/a.*/i) .join(", ");