Skip to content

Instantly share code, notes, and snippets.

@benjamine
Created August 18, 2014 21:56
Show Gist options
  • Save benjamine/4365f684edc04d6f7948 to your computer and use it in GitHub Desktop.
Save benjamine/4365f684edc04d6f7948 to your computer and use it in GitHub Desktop.
thirteen.js
function sort(s) { return s.split('').sort().join(''); }
sort("eleven plus two") === sort("twelve plus one");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment