Skip to content

Instantly share code, notes, and snippets.

@alexeygolev
Created July 29, 2016 22:00
Show Gist options
  • Save alexeygolev/17dd76640f906c461c943a7add410f67 to your computer and use it in GitHub Desktop.
Save alexeygolev/17dd76640f906c461c943a7add410f67 to your computer and use it in GitHub Desktop.
getNames
function getNames(xs) {
let idx = 0
let result = []
while (idx < xs.length) {
result[idx] = xs[idx].name
idx = idx + 1
}
return result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment