摘要:
In lodash, you can use 'mixin' to create a new function on lodash object. import * as _ from 'lodash'; _.chunk([1, 2, 3, 4], 2); // [[1,2], [3,4]] _.m 阅读全文
摘要:
Instead of first checking to see if a record already exists within your table, we can do a on conflict do update. In this command, we can ether insert 阅读全文
摘要:
The useDebugValue hook will not effect your user experience but is instead aimed at improving the developer experience. When building your own custom 阅读全文
摘要:
Discriminated (Tagged) Unions means that for two or more similar types, we have one common prop which can differentiate individual. interface Order { 阅读全文
摘要:
When we use class extend in typescript: // app.ts export default class App {} // bar.ts export defulat class Bar extends App { } After compiling, we w 阅读全文
摘要:
Sometime if our tsconfig.json looks like this; { "compilerOptions": { "target": "es5", "module": "commonjs", "outDir": "dist" } } We can get all kinds 阅读全文