Skip to content

Instantly share code, notes, and snippets.

@logosity
Created May 23, 2013 19:05
Show Gist options
  • Save logosity/5638591 to your computer and use it in GitHub Desktop.
Save logosity/5638591 to your computer and use it in GitHub Desktop.
//"safe" version:
function listFruits(fs) {
var fruits = [].concat(fs);
fruits.sort();
for(var i in fruits) {
console.log(fruits[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment