What's the getmember equivilent to user.loggedin property?

I have a page that can be accessed by any visitor to the site but in they need to be logged on for some of the functionality.
The deprecated wixUsers . currentUser had a property to do exactly that but I can’t see how it’s accomplished in currentMember.getMember.
Any suggestions?

You could try this

import{ currentMember } from'wix-members';

$w.onready(async () => {
    let loggedIn = await currentMember.getMember() ? true : false
})

Thanks for the suggestion. I’ve changed my approach and created two pages with the same content. Anyone can view the first but you need to be a member to see the second which has the member only data appended.
It’s not the most elegant solution but it works and I’ve wasted enough time on it already :grinning: