filterByType

Filters cards by type line.

Return

List of cards whose type line contains the specified type

Example:

val creatures = cards.filterByType("Creature")
val dragons = cards.filterByType("Dragon")

Parameters

type

The type to filter by (e.g., "Creature", "Instant", "Dragon")