Skip to content

Instantly share code, notes, and snippets.

@doc22940
Forked from cowboy/bird-map.js
Created February 25, 2020 20:50
Show Gist options
  • Select an option

  • Save doc22940/bc0d900c8c7fa15efe4c27bcfb215bd1 to your computer and use it in GitHub Desktop.

Select an option

Save doc22940/bc0d900c8c7fa15efe4c27bcfb215bd1 to your computer and use it in GitHub Desktop.
i made a bird map
'bird'
.split(/^(.)(.)(.)/)
.map(''.constructor.call.bind(''.repeat))
.filter(''.constructor)
.map(''.constructor.call.bind(''.charCodeAt))
.map(n=>n<100?100:n<101?107:n<106?111:n)
.map(''.constructor.fromCharCode)
.join('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment