Created
May 1, 2018 21:59
-
-
Save martinsson/df2155e12aa7bffe951b1e00e1822fe6 to your computer and use it in GitHub Desktop.
Bug generator: Use of indices
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 isCat = animal => animal.type === 'cat' | |
let foundAnimal = animals.some(isCat) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment