JavaScript/TypeScript Read all files and subdirectories in iterative call Ineededtoimplementafunctionthatreadsallthefilesandthesubdirectories.Manyframeworksoffersuchafunctionbutitmightneedtobeim... 2023.09.06 JavaScript/TypeScript
JavaScript/TypeScript TypeScript/JavaScript Filter array of objects by property value Anarrayoftenneedstobefilteredbyacondition.ThatcaneasilybedonefilterfunctionthatisimplementedinArrayobject.Let'sseehowtof... 2023.05.22 JavaScript/TypeScript
JavaScript/TypeScript JavaScript replaceAll multiple characters and strings replaceAllwasaddedtoECMAScript2021.Thesamethingcanbedonewithreplacefunctionbutthenameisclearerfortheintention.Itcanmakef... 2023.05.19 JavaScript/TypeScript
JavaScript/TypeScript Node.js + C# (Edge.js) How to investigate Memory Leak It's hard to find the root cause when we find a memory leak in software. If you have no clue, it's better to start profiling the code. A tool helps the investigation. 2023.04.21 JavaScript/TypeScriptTips
JavaScript/TypeScript How to sort Array if it contains number string and string data in JavaScript Doesn't Array.sort output as you expected? It's because number is handled as string by default. If you want to sort the array on your needs, you need to write your own sorting logic. 2023.01.20 JavaScript/TypeScript
JavaScript/TypeScript Implementing Treap data structure in TypeScript This post explains what Treap is and how it can be implemented in detail. It is often used for the implementation of dictionary and set. It's worth knowing. 2022.12.21 JavaScript/TypeScript
JavaScript/TypeScript TypeScript Remove elements from an object array Remove method doesn't exist on Array interface. So we need to implement it ourselves. This article explains how to remove elements from number/string/object array. 2022.11.23 JavaScript/TypeScript
JavaScript/TypeScript Implementation of D Way Heap in TypeScript (Binary Tree) Explains how D-way heap works and how it can be implemented in TypeScript. If you need to update/remove an element, it does it in a very short time. 2022.11.07 JavaScript/TypeScript
JavaScript/TypeScript FATAL ERROR: invalid array length Allocation failed Isn't there an infinite loop in your code? Don't you edit an array in the loop? If so, use the copy instead. 2022.11.02 JavaScript/TypeScript
JavaScript/TypeScript TypeScript Find the lowest missing number in an array It explains how to find the lowest missing number in an array. Not only for an array that starts with 0 but also starts with an arbitrary value. Furthermore, the step between the values can change. 2022.10.28 JavaScript/TypeScript