lwt09

Results 7 comments of lwt09

let str = 'a aa a a ' str.split(' ').join('') str.replace(/\s*/g,'')

``` type User = { id: number; kind: string; }; function makeCustomer(u: T): T { // Error(TS 编译器版本:v4.4.2) // Type '{ id: number; kind: string; }' is not assignable to...

``` function f(a: number, b: number): number; function f(a: string, b: string): string; function f(a: number | string, b: number | string) { if (typeof a === "string") { return...

![image](https://user-images.githubusercontent.com/55039185/150620464-b3e0fa3d-3b0f-4e9b-878e-a99132c80539.png)

![image](https://user-images.githubusercontent.com/55039185/152955578-6f70fa78-25b8-49e7-b247-c994134a8c3c.png)

![image](https://user-images.githubusercontent.com/55039185/153323258-6c46fb65-1ca2-48d3-bba5-786955c0ef21.png)

![image](https://user-images.githubusercontent.com/55039185/153108986-f3c08866-c5c4-4101-be89-4e07b6ed1db8.png)