JavaScript/TypeScript TypeScript/JavaScript Extract target keys from an object A variable name can be too long to be referred to many times. If it is an object, the name to access one of the child va... 2021.11.12 JavaScript/TypeScript
JavaScript/TypeScript JavaScript/TypeScript Handling Surrogate Pairs I needed to convert a string to ASCII code in my work. I didn't need to care about multi-byte characters but I wanted to... 2021.11.10 JavaScript/TypeScript
JavaScript/TypeScript Validate Json file with Json schema Json file is widely used for many purposes. To consume the data, we somehow need to validate the json file. It is ok to ... 2021.11.08 JavaScript/TypeScript
JavaScript/TypeScript TypeScript Hack the original behavior Dependency doesn't support what you want? Then, hacking the code might be the solution. This article tries to replace th... 2021.10.22 JavaScript/TypeScript
JavaScript/TypeScript Make an Event Listener test simpler by Promise A unit test should test only one thing but there might be some cases that a test checks multiple things because those va... 2021.10.13 JavaScript/TypeScript
JavaScript/TypeScript OR Operator causes a misunderstanding OR operator "||" is useful to set a default value if the target variable is not set but it is easy to make a mistake eve... 2021.10.11 JavaScript/TypeScript
JavaScript/TypeScript How to write annoying unit tests A unit test should be clear enough. To make it concise, the tests are refactored. It looks good at first but some of them trouble us as the software grows. Let's understand those ways to cause problems. 2021.10.04 JavaScript/TypeScript
JavaScript/TypeScript TypeScript How to refactor a function to use named parameters TypeScript and JavasScript don't offer named parameters. How can we do a similar thing? Is there are any to refactor the code to apply the technique? 2021.10.01 JavaScript/TypeScript
JavaScript/TypeScript Node-RED flow test is slow if flow is big I have tried several times to reduce test time of Node-RED flow test and failed. For the flow test, I use node-red-node-... 2021.09.03 JavaScript/TypeScript
JavaScript/TypeScript TypeScript – Using never type in switch case TypeScript offers never data type for values that never occur. I've never seen it in my work but I found it useful for s... 2021.08.26 JavaScript/TypeScript