Make getCards return a list #16

Closed
opened 2023-04-11 08:36:21 +00:00 by LunarTides · 0 comments
LunarTides commented 2023-04-11 08:36:21 +00:00 (Migrated from github.com)

Right now functions.getCards returns an object. We always just do

Object.values(getCards());

anyways, which returns a list. If we ever want the keys, we can just do

getCards().map(c => c.name)

This will take a while since you need to update every single card that expects an object.

Right now `functions.getCards` returns an object. We always just do ```js Object.values(getCards()); ``` anyways, which returns a list. If we ever want the keys, we can just do ```js getCards().map(c => c.name) ``` This will take a while since you need to update every single card that expects an object.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#16
No description provided.