Cache meta

This commit is contained in:
syuilo
2019-04-24 08:11:19 +09:00
parent 8a55bdd89d
commit 5aa5896b22
34 changed files with 62 additions and 55 deletions

View File

@@ -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)
));