Cache meta
This commit is contained in:
@@ -10,7 +10,7 @@ export async function awaitAll<T>(obj: T): Promise<AwaitAll<T>> {
|
||||
const values = Object.values(obj);
|
||||
|
||||
const resolvedValues = await Promise.all(values.map(value =>
|
||||
(value || !value.constructor || value.constructor.name !== 'Object')
|
||||
(!value || !value.constructor || value.constructor.name !== 'Object')
|
||||
? value
|
||||
: awaitAll(value)
|
||||
));
|
||||
|
Reference in New Issue
Block a user