JavaScript/TypeScriptTypeScript/JavaScript Filter array of objects by property value An array often needs to be filtered by a condition. That can easily be done filter function that is implemented in Array...2023.05.22JavaScript/TypeScript
JavaScript/TypeScriptJavaScript replaceAll multiple characters and strings replaceAll was added to ECMAScript2021. The same thing can be done with replace function but the name is clearer for the...2023.05.19JavaScript/TypeScript
JavaScript/TypeScriptNode.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.21JavaScript/TypeScriptTips
JavaScript/TypeScriptHow 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.20JavaScript/TypeScript
JavaScript/TypeScriptImplementing 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.21JavaScript/TypeScript
JavaScript/TypeScriptTypeScript 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.23JavaScript/TypeScript
JavaScript/TypeScriptImplementation 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.07JavaScript/TypeScript
JavaScript/TypeScriptFATAL 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.02JavaScript/TypeScript
JavaScript/TypeScriptTypeScript 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.28JavaScript/TypeScript
JavaScript/TypeScriptTypeScript Cancellable sleep/delay By using async/await keyword with Promise, you can easily implement sleep/delay function. Furthermore, this post explains how to implement to cancel the sleep/delay for some reasons.2022.08.22JavaScript/TypeScript