Gaurav J Somanigaurav750.hashnode.dev·Oct 30, 2023Mastering TypeScript: Beyond the Basics with Interfaces, Generics, and MoreMany of us have already dabbled with the basic types TS provides and experienced the safety it provides. But Typescript, like an iceberg, has layers beneath its surface - features that can make our code more flexible, robust and maintainable. In this...Discuss·1 like·33 readsTypeScript Generics
Jiwon Yujingwangjjang.hashnode.dev·Oct 26, 2023[JavaScript] What is Optional chaining (?.)?The optional chaining (?.) operator accesses an object's property or calls a function. If the object accessed or function called using this operator is undefined or null, the expression short circuits and evaluates to undefined instead of throwing an...DiscussJavaScript
Mikeydraken.hashnode.dev·Oct 11, 2023Optional Chaining in JavaScriptOptional chaining is a handy feature introduced in ES2020 that allows you to safely access nested properties on an object without having to check if each reference in the chain is valid. This helps avoid pesky errors like cannot to read property 'x' ...DiscussOptional chaining
Thet Lin HanforDSS Devdssdev.hashnode.dev·Sep 5, 2023Javascript Optional Chain (object?.foo)ဒီနေ့ပြောပြပေးသွားမှာက ပေါ့ပေါ့ပါးပါး နဲ့ အရမ်းအသုံးဝင်တဲ့ JavaScript ရဲ့ special syntax တစ်ခုဖြစ်တဲ့ optional chain [?.] လေးအကြောင်းပါ။ အဖြစ်များတဲ့ type error ❌ Optional chain လေးအကြောင်းမပြောခင် အောက်က code example လေးတစ်ခုကို အရင်ကြည့်ကြမယ်။ cons...Discuss·5 likes·43 readsJavaScript
Emerson Souzablog.lublot.dev·Jul 17, 2023Unleashing the Power of Optional Chaining in TypeScriptWhat is Optional Chaining? Optional Chaining is a feature in TypeScript that allows you to access nested properties of an object or call chained methods, even when one or more of these properties are null or undefined. It provides a safe and concise ...DiscussTypeScript
Vaibhav Upadhyayinfinityvaibhav.hashnode.dev·Jul 16, 2023Optionals in SwiftIn Swift, optionals are a powerful feature that allows you to represent the absence of a value for a particular variable or constant. Optionals are used to handle situations where a value may be present or may be missing (nil). The concept of optiona...DiscussiOS
Ofuzor Chukwuemekechukwuemekeclinton.hashnode.dev·Jun 30, 2023Mastering Optional Chaining in JavaScript Enhancing Code Readability and Error Handling.What is Optional Chaining? Optional chaining is a feature introduced in Javascript that allows you to access the properties and methods of an object without the need to explicitly check if intermediate properties or methods exist. It provides a conci...Discuss·18 likes·80 readsJavaScript
Bhushan Patilfrontendgenius.com·Mar 3, 202310 New JavaScript features to start using todayJavaScript is a widely used programming language in web development that continues to evolve with new features. By leveraging these features, developers can enhance their coding skills and increase productivity. In this article, we will explore eight...Discuss·167 readsJavascriptJavaScript
Anshul Tamrakaranshultamrakar.hashnode.dev·Feb 28, 2023I was checking for an empty array wrong...How to check for an empty array in javascript?In JavaScript, there are several ways to check if an array is empty. Here are the common methods: Using the length property: One way to check if an array is empty is to use its length property. An empty array has a length of 0, so we can check for an...Discuss·1 like·99 readsNullish coalescing
Ajayajay020.hashnode.dev·Feb 27, 2023How to use the Optional chaining operator(?.) in JavaScriptThe optional chaining operator ?. is used to access the properties and methods of an object safely. If any of the intermediate properties in the chain is null or undefined, it stops evaluating the expression and returns undefined , rather than throwi...Discuss·51 readsJavaScript