Is there a way to watch an object and wait for all of its values to become truthy?
const myObject = {
key1: null,
key2: null,
key3: null,
}
// Perform asynchronous operations that update myObject
const checkValues = async () => {
await Object.values(myObject).every(value => !!value)
// Continue with the code
}