mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
8 lines
199 B
TypeScript
8 lines
199 B
TypeScript
import { Observable } from './observable';
|
|
|
|
const getCollectionItems = async <T>(items: Observable<T>[]) => {
|
|
return Promise.all(items.map((item) => item.data));
|
|
};
|
|
|
|
export { getCollectionItems };
|