SyntaxFix
Write A Post
Hire A Developer
Questions
My variant:
const inFromBack = performance && performance.getEntriesByType( 'navigation' ).map( nav => nav.type ).includes( 'back_forward' )