app/scripts/main.js
/**
     * @param {string} name Name attribute of the input
     * @return {HTMLInputElement | null} Finds input to validate
     */
@param {string} name Name attribute of the input
@return {HTMLInputElement | null} Finds input to validate
@param { string } name Name attribute of the input @return { HTMLInputElement | null } Finds input to validate
findInput(name) {
      return [...this.inputs].find((input) => {
        return input.getAttribute('name') === name;
      }) || null;
    }
findInput ( name ) { return [ ... this . inputs ] . find ( ( input ) => { return input . getAttribute ( 'name' ) === name ; } ) || null ; }
@param {string} name Name attribute of the input
 @return {HTMLInputElement | null} Finds input to validate
@param { string } name Name attribute of the input @return { HTMLInputElement | null } Finds input to validate