Guest User

Untitled

a guest
Oct 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function consulta_retorna_id(nome){
  2. return get_id(nome);
  3. }
  4.  
  5. function insere_tarefa(id, tarefa){
  6. set_tarefa(id, tarefa);
  7. }
  8.  
  9. //person = arquivo json local
  10. for (x in person) {
  11.  
  12. var id = consulta_retorna_id(person[x].nome);
  13. insere_tarefa(id,person[x].nome);
  14.  
  15. }
Add Comment
Please, Sign In to add comment