Skip to content

Instantly share code, notes, and snippets.

@biantris
Created December 26, 2022 14:10
Show Gist options
  • Save biantris/c782c3f48be646cd65d72c6f5d249f54 to your computer and use it in GitHub Desktop.
Save biantris/c782c3f48be646cd65d72c6f5d249f54 to your computer and use it in GitHub Desktop.
list a array
let i: any;

const usersArray: any = [];
 for (i in getData) {
   //@ts-ignore
   usersArray.push(`${usersArray[i]}`);
}

console.log('users', usersArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment