Created
February 4, 2021 19:56
-
-
Save JamieDixon/0bf3253659e98d4ad5fc4eb6ff5f96fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fn = input => input.match(/(\w)\1+|\w{1}/gm).map(x => [x, x.length]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment