fix no-firstname error
This commit is contained in:
parent
919e74aa37
commit
71a8c6e7fc
1 changed files with 4 additions and 2 deletions
|
@ -13,9 +13,11 @@ const main = () => {
|
|||
// Callback: called when firstname is changed
|
||||
const update_const = () => {
|
||||
const firstname = document.getElementById(input_name).value;
|
||||
const data = get_const(firstname.toLowerCase().split(""));
|
||||
if(firstname.length) {
|
||||
const data = get_const(firstname.toLowerCase().split(""));
|
||||
|
||||
console.log(`output: ${data.const} - ${JSON.stringify(data.infos)}`);
|
||||
console.log(`output: ${data.const} - ${JSON.stringify(data.infos)}`);
|
||||
}
|
||||
};
|
||||
|
||||
const get_const = (letters = Array) => {
|
||||
|
|
Loading…
Reference in a new issue