MK
Size: a a a
MK
F
MK
j
input.autofocus = true
MK
F
MK
IS
j
IS
m
m
IS
a[id]
?ИХ
let pwd_ctrl = document.querySelector('.password-control')
pwd_ctrl.addEventListener('click', ()=> {
debugger
let input = this.previousElementSibling
if (input.getAttribute('type') === 'password') {
this.classList.add('view')
input.setAttribute('type', 'text')
} else {
this.classList.remove('view')
input.setAttribute('type', 'password')
}
})
m
AP
ИХ
S
S
export function sortByName(arr) {
return arr.sort(function (a, b) {
return a.data.name.localeCompare(b.data.name)
})
}
вот сортирую по алфавиту