getState

The getState() method of the NavigationHistoryEntry interface returns a clone of the developer-supplied state associated with this history entry.

MDN Reference