Skip to content

Instantly share code, notes, and snippets.

@qgustavor
Created December 13, 2015 14:56
Show Gist options
  • Select an option

  • Save qgustavor/422c81347a4496c4c6f6 to your computer and use it in GitHub Desktop.

Select an option

Save qgustavor/422c81347a4496c4c6f6 to your computer and use it in GitHub Desktop.
let normalize = e => e.toLowerCase().match(/\w/g).sort().join('')
let animes = /* paste the result from https://hummingbird.me/api/v1/users/[username]/feed here
where [username] is someone which watched many animes */
animeNames = animes
.reduce((a,e) => a.concat([e.anime.title, e.anime.alternate_title]), [])
.filter(e => e)
let n = normalize('some anagram')
animeNames.filter(e => normalize(e) === n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment