Omit under the hood

Example of Omit use

Today we’re talking about Omit.

First challenge was Pick under the hood where we discussed how Pick is working. Omit is the opposite of Pick: it excludes the keys we specify.

Combination of 2 challenges

First of all, we already learnt how to pick the keys we specify:

Pick solution

We also need to exclude specified keys. That was in one of the challenges too:

Exclude solution

We pick only those keys which are not excluded, let’s use them together:


As usual, put the solution in Playground

Have a nice day 🌤


Let's chat and have fun 🧑‍💻👩‍💻

No more often than once a week I write 📄 about TypeScript 💪, video playback 📺 and frontend related topics. You can unsubscribe in any time ↘️