function newUserRow(row) {
  let tr = createAnyElement("tr");
  for (let k of keys) {
    let td = createAnyElement("td");
    let input = createAnyElement("input", {
      class: "form-control",
      name: k
    });
    td.appendChild(input);
    tr.appendChild(td);
  }

  let newBtn = createAnyElement("button", {
    class: "btn btn-success",
    onclick: "createUser(this)"
  });
  newBtn.innerHTML = '<i class="fas fa-sync" aria-hidden="true"></i>';
  let td = createAnyElement("td");
  td.appendChild(newBtn);
  tr.appendChild(td);

  return tr;
}
// create new user row to the table
create new user row to the table
create new user row to the table
function newUserRow(row) {
  let tr = createAnyElement("tr");
  for (let k of keys) {
    let td = createAnyElement("td");
    let input = createAnyElement("input", {
      class: "form-control",
      name: k
    });
    td.appendChild(input);
    tr.appendChild(td);
  }
  let newBtn = createAnyElement("button", {
    class: "btn btn-success",
    onclick: "createUser(this)"
  });
  newBtn.innerHTML = '<i class="fas fa-sync" aria-hidden="true"></i>';
  let td = createAnyElement("td");
  td.appendChild(newBtn);
  tr.appendChild(td);
  return tr;
}
function newUserRow ( row ) { let tr = createAnyElement ( "tr" ) ; for ( let k of keys ) { let td = createAnyElement ( "td" ) ; let input = createAnyElement ( "input" , { class : "form-control" , name : k } ) ; td . appendChild ( input ) ; tr . appendChild ( td ) ; } let newBtn = createAnyElement ( "button" , { class : "btn btn-success" , onclick : "createUser(this)" } ) ; newBtn . innerHTML = '<i class="fas fa-sync" aria-hidden="true"></i>' ; let td = createAnyElement ( "td" ) ; td . appendChild ( newBtn ) ; tr . appendChild ( td ) ; return tr ; }
create new user row to the table
create new user row to the table