Тёмный

A beginners guide to Typescript | Collective Literal Types, Widening and Narrowing Types 

developedbyed
Подписаться 930 тыс.
Просмотров 6 тыс.
50% 1

Check out my Web Development Courses 🔥
developedbyed.com/
🛴 Follow me on:
Twitch: / developedbyed
Twitter: / developedbyed
Instagram: / developedbyed
Github: github.com/developedbyed/
🔥Dope Tracks
Mac Kay - Shade chll.to/00509844
Boukas - Melvin chll.to/10d340df
less.people - Lamp Glow chll.to/51b47e4a
Enough Cereals - Suave chll.to/3ce6c324

Наука

Опубликовано:

 

15 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@developedbyed
@developedbyed 2 месяца назад
Hope you enjoy this series, leave anything you want me to discuss that's typescript related here, so I can talk about them in the next episode 👍 Fullstack course is halfway filmed as well, it's gonna be huge
@IOSALive
@IOSALive 2 месяца назад
developedbyed, This video is fantastic! I liked it a lot!
@developedbyed
@developedbyed 2 месяца назад
Thank you very much!
@TiriasCZ
@TiriasCZ 2 месяца назад
8:15 So are we supposed to use only instanceof instead of typeof or are there any cases where we should use typeof?
@developedbyed
@developedbyed 2 месяца назад
Hope this makes it clear typeof expression is the operator that lets you determine the type of expression. typeof evaluates to one of the values: 'string', 'number', 'boolean', 'symbol', 'undefined', 'object', 'function'. typeof null evaluates to 'object', thus the correct way to use typeof to detect an object is typeof object === 'object' && object !== null. instanceof operator let's identify the instance's constructor. object instanceof Constructor evaluates to true if object is an instance of Constructor.
@developedbyed
@developedbyed 2 месяца назад
Usually use typeof for primitives, cause when you pass it an object, array, null or ehatever it will just give you back “object” Whereas with instanceof you can check if you pass an array for ex unction isArray(value) { return value instanceof Array; } isArray([1, 2, 3]); // => true isArray({ prop: 'Val' }); // => false
@billynasir3146
@billynasir3146 2 месяца назад
I would like to buy your Next JS course but is it getting updated?
@developedbyed
@developedbyed 2 месяца назад
Update out in about 2 weeks!
@encilaj1444
@encilaj1444 2 месяца назад
Sheesshhh.
@johnlayda3299
@johnlayda3299 2 месяца назад
Shesh
@egbaogheneakon4266
@egbaogheneakon4266 2 месяца назад
Firstttttttt
@developedbyed
@developedbyed 2 месяца назад
you are first and managed to edit your comment, gg
@tevfik7
@tevfik7 2 месяца назад
Why all my fave youtube devs use tsx for react courses? Jsx pls, I barely learned js and now everything is in ts 😂🤦🏻‍♂️
Далее
Code 15 React Projects - Complete Course
9:07:48
Просмотров 1,4 млн
🤢 To try piggy toothpick beauty gadget
00:30
Просмотров 7 млн
Я ТВОЙ ОТЕЦ #большоешоу
01:01
Просмотров 239 тыс.
heavy boot #tiktok
00:16
Просмотров 822 тыс.
Learn TypeScript Generics In 13 Minutes
12:52
Просмотров 219 тыс.
Top 10 Tips and Tricks with Tailwind CSS
23:45
Просмотров 84 тыс.
Avoid These Typescript Mistakes
9:31
Просмотров 10 тыс.
TypeScript Wizardry: Recursive Template Literals
14:47
Animate between states with the View Transitions API
3:47
HTMX + GO 15 Minute Quickstart (For Javascript Devs)
16:59
A flexbox trick to improve text wrapping
5:02
Просмотров 168 тыс.
Why use Type and not Interface in TypeScript
14:12
Просмотров 191 тыс.