Vansh Sharmavanshsharma.hashnode.dev路Dec 27, 2024Keyof and Typeof Operators in TypeScriptKeyof Operator The keyof operator in TypeScript is used to create a union type of all the keys of a given object type. This allows developers to dynamically reference the keys of an object, enhancing type safety and reducing errors in code. For examp...TypeScript
Prince Patelprincewrite.hashnode.dev路Aug 6, 2024Understanding Null in JavaScript: A Primitive or an Object?JavaScript is full of quirks, and one of the most puzzling is the treatment of null. While the official ECMAScript specification defines null as a primitive value, using the typeof operator reveals a surprising result: it returns "object". This appar...1 likeJavaScript
decpkdecpk.hashnode.dev路Apr 6, 2024typeof type operator in Typescripttypeof operator is used to get type of (I'd prefer to say Shape of) operand. If you want to learn about typeof in reference to Javascript then you can visit typeof operator in javascript. Syntax of typeof operator in Typescript Typescript typeof oper...typeof
decpkdecpk.hashnode.dev路Apr 6, 2024typeof operator in JavascriptDo you actually know how to use typeof in Javascript?Do you now what are typeof operator capabilities? Well, we are going to explore typeof in depth. 馃挕 Do you know typeof is not specific to Typescript. It was already an operator in Javascript. ty...JavaScript
Manish Kumarsdemanish.hashnode.dev路Oct 6, 2023The "typeof" Operator in JavaScriptThe typeof operator in JavaScript is a powerful tool for identifying the data type of a given value. Understanding how to use typeof is essential for writing robust and error-free JavaScript code. In this blog post, we'll dive deep into the typeof op...1 likeJavaScriptwebdev
Kiprotich Dominickiprotichdominic.hashnode.dev路Feb 28, 2023== vs === vs typeof in javascriptIn yesterday's lesson, we covered the concepts of Implicit, Explicit, Nominal, Structuring, and Duck Typing in JavaScript. We delved deep into each of these terms and provided some useful references for further study. If you missed that article, you ...1 like路138 readsJavascript 30 Concepts In 30JavaScript
Hari Krishna Anemharikrishna.hashnode.dev路Jan 6, 2022JavaScript: Count the object depthlet myObj = { name: 'hari', location: { city: 'hyderabad' }, a: { b: { c: { d: { e: { f: { g: { h: { i: 10 } } ...Recursion