Skip to content

Instantly share code, notes, and snippets.

@jwulf
Created March 4, 2020 14:07
Show Gist options
  • Save jwulf/b46b22b2b293f87dae2e2b384e7b4172 to your computer and use it in GitHub Desktop.
Save jwulf/b46b22b2b293f87dae2e2b384e7b4172 to your computer and use it in GitHub Desktop.
var content = info.data;
var project_arr = [];
var identity = {};
for (var i = 0; i < content.length; i++) {
if (content.length > 0) {
identity.Project_ID = content[i].id;
identity.Project_Name = content[i].name;
identity.Project_Start_Date = content[i].starts_at;
identity.Project_End_Date = content[i].ends_at;
identity.Project_Status = content[i].project_state;
project_arr.push(identity);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment