НС
Size: a a a
НС
w
const [location] = history.location.pathname.slice(1).split('/')
понятнее будет const location = history.location.pathname.split('/')[1]
????НС
const [location] = history.location.pathname.slice(1).split('/')
понятнее будет const location = history.location.pathname.split('/')[1]
????НС
w
НС
.slice(1) таки очевиднее.НС
const [location] = history.location.pathname.slice(1).split('/')const location = history.location.pathname.slice(1).split('/')[0]НС
const [, sub] = history.location.pathname.slice(1).split('/')
иconst sub = history.location.pathname.slice(1).split('/')[1]
?w
НС
НС
const path = history.location.pathname.slice(1)w
?
EF
a
a
j
НС
НС
НС
el.childNodes[3].click() не?