摘要:
One common question is whether to use type or interface in TypeScript. To clarify the difference, type can represent anything, including objects, wher 阅读全文
摘要:
You don't really need to apply a really complex regex for one validation, instead you can combine multi regex together to fulfilll the task. const reg 阅读全文
摘要:
You cannot assign anything to never, except for never itself. // red squiggly lines under everything in parens fn("hello"); fn(42); fn(true); fn({}); 阅读全文
摘要:
Any time when you have non-primitive type, it's going to be removed from memory anytime if it is no longer needed. class Test { constructor(name) { th 阅读全文
摘要:
Bash is built to handle multiple programs running in parallel. time cat Type time cat and then hit ctrl-c before one second, as close as possible with 阅读全文