Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created November 3, 2021 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/2ce251ce3080573a7605cf85c742e08b to your computer and use it in GitHub Desktop.
Save Hkazanci93/2ce251ce3080573a7605cf85c742e08b to your computer and use it in GitHub Desktop.
client.json_get("players", function (err, results) {
const currentplayers = Object.values(JSON.parse(results))
currentplayers.forEach(function (item, index){
playernames.push(item.name)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment