Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

I STILL get so many folks misunderstanding the difference between: Pick, Omit Exclude, Extract They should be called: PickFromObject, OmitFromObject ExcludeFromUnion, ExtractFromUnion Here's a breakdown:

32,246 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Matt Pocock
Matt Pocockvor 1 Jahr

Here's my course - it's 30% off right now

Profilbild von Théo LUDWIG
Théo LUDWIGvor 1 Jahr

I always end up copy/pasting the stricter version in my projects and never use the original one: export type OmitStrict<T, K extends keyof T> = Omit<T, K> export type PickStrict<T, K extends keyof T> = Pick<T, K>

Profilbild von Matt Pocock
Matt Pocockvor 1 Jahr

Pick is already strict, FYI

Profilbild von Shelton Louis
Shelton Louisvor 1 Jahr

You're right!

Profilbild von onurhan
onurhanvor 1 Jahr

I can recommend an interactive article about difference between Pick and Omit

Profilbild von Jacky Hu
Jacky Huvor 1 Jahr

🙋‍♂️ type Album = { // ... artist: string // ... } what's diff between 1. Pick<Album, 'artist'> 2. Album['artist'] thanks 🙏

Profilbild von Matt Pocock
Matt Pocockvor 1 Jahr

type Album = { artist: string }; Album['artist']; // string Pick<Album, 'artist'>; // { artist: string }

Profilbild von marc niclas
marc niclasvor 1 Jahr

Nah mate, too many characters

Profilbild von Matt Pocock
Matt Pocockvor 1 Jahr

It's only me in the video

Profilbild von Suumiboor
Suumiboorvor 1 Jahr

It's a weird multi-level almost set-like thing that syntax... would love to see something cleaner, at least that's my current understanding.

Ähnliche Videos

I’ll get called a supremacist for this breakdown. So be it.
2:12

Sensitive content

I’ll get called a supremacist for this breakdown. So be it.

Amiri King

139,517 Aufrufe • vor 1 Jahr