« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/aggregate.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/aggregate.js')
-rw-r--r--src/util/aggregate.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/aggregate.js b/src/util/aggregate.js
index 5429e64..3ad8bdb 100644
--- a/src/util/aggregate.js
+++ b/src/util/aggregate.js
@@ -124,6 +124,13 @@ export function openAggregate({
     });
   };
 
+  aggregate.contain = (results) => {
+    return {
+      aggregate,
+      result: aggregate.receive(results),
+    };
+  };
+
   aggregate.map = (...args) => {
     const parent = aggregate;
     const {result, aggregate: child} = mapAggregate(...args);