mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
init
This commit is contained in:
7
bin/observable/utils.ts
Normal file
7
bin/observable/utils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Observable } from "./observable";
|
||||
|
||||
const getCollectionItems = async <T>(items: Observable<T>[]) => {
|
||||
return Promise.all(items.map((item) => item.data));
|
||||
};
|
||||
|
||||
export { getCollectionItems };
|
||||
Reference in New Issue
Block a user