Escape Hatches
Escape Hatches
π¨βπΌ Sometimes you need to work with data whose type you don't know. Let's see
how
any and unknown differ.π¨ Open
and:
- See how
anyallows anything (dangerous!) - See how
unknownrequires checks (safe!) - Refactor
anycode to useunknown