filterByRarity

Filters cards by rarity.

Return

List of cards with the specified rarity

Example:

val mythics = cards.filterByRarity("mythic")

Parameters

rarity

The rarity to filter by (common, uncommon, rare, mythic)