List Utils
object ListUtils
Utility functions for extracting data from ScryfallList.
Kotlin/JS mangles property names, so use these functions to access list data.
Usage:
const listUtils = ListUtils.getInstance();
const results = await api.search('lightning bolt', null);
const cards = listUtils.getData(results);
const total = listUtils.getTotalCards(results);Content copied to clipboard