Переделать arguments или другие псевдомассивы в массив
const inputs = [].slice.call(document.querySelectorAll('input'));