Sayef Reyadh - Programming Made Simple
π» From University Student to Lecturer to Software Engineer | Sharing coding tips, tutorials & practical CS insights | Helping students & beginners learn programming faster, smarter, and with confidence. All the contents copyrights are reserved to Sayef Reyadh
For more of my contents subscribe to my channel at
https://www.youtube.com/SayefReyadh
You can also view my tutorial playlists at
https:/
17/12/2023
Wishing everyone a joyous Victory Day filled with pride, unity, and the spirit of triumph!
Art created with stable diffusion and a bit of my imagination.
12/04/2023
π¨ Did you know there's a new way to copy objects in JavaScript?
π Say goodbye to messy code and hello to `structuredClone` - the native function that lets you make deep copies of objects, even those with nested objects and arrays.
π€― No more worrying about updates to the original object, or using those other methods that don't support certain types.
πͺThe function makes it easy to copy an object without affecting the original.
Please note that `structuredClone` is available in Node.js v17 and above, and supported by all major browsers.π
Did you know that TypeScript has a set of built-in utility types that can help you write more robust and maintainable code? π€
These types, known as "utility types", provide a set of common operations on types, such as mapping, filtering, and picking properties. Here are some of the built-in utility types provided by TypeScript. π
- Partial: Makes all properties of a type optional.
- Required: Makes all properties of a type required.
- Pick: Picks a set of properties from a type.
- Omit: Omit certain properties from a type.
- Record: Creates a type with a set of properties of a certain type.
This is not a complete list of all the utility types in TypeScript, but it includes some of the most common ones I use on a regular basis. Keep in mind that these utility types are a part of the TypeScript language and not a library, so you don't need to install any additional packages to use them. π€₯
Give them a try and see how they can improve your TypeScript development! π
Reference: https://lnkd.in/gyrci6Zx
ββββββββββ
Click here to claim your Sponsored Listing.
Category
Contact the school
Website
Address
Dhaka