Skip to content

Instantly share code, notes, and snippets.

@Hyperxq
Created March 18, 2019 22:27
Show Gist options
  • Save Hyperxq/88c33f90e1f56fba2f4cd94e13fa10f9 to your computer and use it in GitHub Desktop.
Save Hyperxq/88c33f90e1f56fba2f4cd94e13fa10f9 to your computer and use it in GitHub Desktop.
function solution(string) {
return string.split(/(?=[A-Z])/).join(' ');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment