asyncfunctioninit(){ letfriends = awaitgetFriends(); friends.forEach(f=> { letfriendshipStartDate = f.friendInfo.friendshipStart; letlastInteractionTime = f.friendInfo.lastInteractionTime; print(`Friendship with ${f.displayName} started on ${friendshipStartDate}, last interacted on ${lastInteractionTime}`) }); }
Details about friendship between the active user and another user.
Example