Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Created March 9, 2023 23:00
Show Gist options
  • Save hendrixroa/4c97e27caa90ba893fe983cab5a27a73 to your computer and use it in GitHub Desktop.
Save hendrixroa/4c97e27caa90ba893fe983cab5a27a73 to your computer and use it in GitHub Desktop.
Merging data
const dataMerged = allNamesRepos.map((repo: any, index: number) => {
const obj = {
name: repo.name,
starsToday: allStarsRepos[index].stars,
};
return obj;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment