Course contentsShow
TypeScript
Lesson 940 of 1,79621. The unknown TypePro lesson

unknown vs any in Function Parameters

When a function truly accepts anything, unknown is safer than any since it forces the implementer to narrow inside.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.