How to use JSON.stringify replace to await Promise values?
Advertisements I have a JSON object I want to stringify. Some of the values in this object are Promises. How can I use the replacer parameter in JSON.stringify() to pass the result of the Promise, instead of the promise itself? To give a clear example of what I mean, let’s assume the following object: const… Read More How to use JSON.stringify replace to await Promise values?