Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. for (var i = 0; i < results.length; i++) {
  2. var baseObject = new Object();
  3. var resultsObject = results[i];
  4. baseObject.id = resultsObject.id;
  5. baseObject.name = resultsObject.get("name");
  6. baseObject.city = resultsObject.get("city");
  7. baseObject.state = resultsObject.get("state");
  8. baseObject.location = resultsObject.get("location");
  9. bases.push(baseObject);
  10. }
  11.  
  12. baseObject.location = resultsObject.get("location");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement