Created
December 13, 2015 14:56
-
-
Save qgustavor/422c81347a4496c4c6f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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