Guarding dispatch-table calls against undefined keys
⭐ Starfall•Updated 2 days ago•0 views
functable[switch] and functable[switch]() - check the key exists before calling so an undefined switch doesn't error.
How to safely call a function from a lookup table
functable[switch] and functable[switch]() - check the key exists before calling so an undefined switch doesn't error.