js setting async arrow function as object value code example
Example 1: async arrow function
const foo = async () => {
// do something
}
Example 2: async await arrow function
YourAsyncFunctionName = async (value) => {
/* Code goes here */
}