pokemon-showdown/data
Guangcong Luo 246dfa1da3 Refactor in-object-literal to array-includes (#4079)
Previously, if we wanted to test if A was either 'B' or 'C', we would use
the pattern:

    A in {B:1, C:1}

I actually don't know how common this pattern is; I just started using
it because I was tired of typing `A === 'B' || A === 'C'` all the time.
I never really liked it, though; the `:1` part made it kind of
blatantly a hack.

I did some testing and `['B', 'C'].includes(A)` is overall faster.

(A switch statement is around 20x faster still, but who wants to type
that much code?)

Anyway, the new standard is

    ['B', 'C'].includes(A)

Something something progress!
2017-10-23 09:19:15 -05:00
..
abilities.js Refactor in-object-literal to array-includes (#4079) 2017-10-23 09:19:15 -05:00
aliases.js Add Gengar alias Morfent's husbando 2017-09-24 13:30:02 -03:00
bss-factory-sets.json BSS Factory: Major updates (#4015) 2017-09-25 04:47:29 +08:00
factory-sets.json Battle Factory: Huge Ubers update 2016-09-09 07:00:39 -05:00
formats-data.js Random Battle updates 2017-10-20 13:29:40 +04:00
items.js Refactor in-object-literal to array-includes (#4079) 2017-10-23 09:19:15 -05:00
learnsets.js Add new event Pokemon 2017-10-12 08:58:42 -04:00
moves.js Refactor in-object-literal to array-includes (#4079) 2017-10-23 09:19:15 -05:00
pokedex.js Correct Tsareena's evolution condition (#4063) 2017-10-15 19:21:32 -04:00
random-teams.js Refactor in-object-literal to array-includes (#4079) 2017-10-23 09:19:15 -05:00
rulesets.js Fix >6-pokemon Custom Games 2017-09-09 19:41:55 -04:00
scripts.js Refactor in-object-literal to array-includes (#4079) 2017-10-23 09:19:15 -05:00
statuses.js Fix Choice-lock before attempting a move 2017-09-24 12:13:30 -04:00
typechart.js Implement immunity of Dark-types to Prankster 2016-11-18 00:35:52 -05:00