« get me outta code hell

aggregate: aggregate.contain - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-07 10:01:11 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-07 10:01:11 -0300
commite2f3d95a59dfe2badc71eafca21c66052fefbbad (patch)
tree9db8a7991de73e230eb2bc0f9bb7c4dff9e28528 /src
parentc447d44bf78efcb32a0a7427aff0dc1d44d3a6fc (diff)
aggregate: aggregate.contain
Diffstat (limited to 'src')
-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 5429e640..3ad8bdba 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);