Profectus / features/challenges/challenge / isAnyChallengeActive
Function: isAnyChallengeActive() ​
isAnyChallengeActive(
challenges):Ref<boolean>
Utility for reporting if any challenge in a list is currently active. Intended for preventing entering a challenge if another is already active.
Parameters ​
challenges ​
List of challenges that are mutually exclusive
Challenge[] | Ref<any, any>
Returns ​
Ref<boolean>