Unary OperatorString to number conversion using the unary operator. const a = '10'; +a // will print number 10 Look at below const foo = { valueOf: () => '10' }; +foo // it will also print 101 min read·jkpulipati.hashnode.devOct 8, 2021
How to make a property of an object is read-only using typescripthow to make a property as readonly1 min read·jkpulipati.hashnode.devJun 23, 2021
When should we choose map over object literal?objects vs maps2 min read·jkpulipati.hashnode.devJun 17, 2021
Sort list of numbers in Javascript without using the sort method.sort numbers1 min read·jkpulipati.hashnode.devJun 15, 2021