Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
insertDash=n=>{var r='',i;n+=r;for(i in n){r+=(n[i-1]%2&&n[i]%2?'-':'')+n[i]}return r}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment