58. implement Diff<A, B>
分享给更多人
-通过 / -执行
Implement DiffKeys<A, B>
to return the keys either in A or B, but not in both.
type A = DiffKeys<{a: 1, b: 2}, {b: 1, c: 2}> // 'a' | 'c'
-通过 / -执行
Implement DiffKeys<A, B>
to return the keys either in A or B, but not in both.
type A = DiffKeys<{a: 1, b: 2}, {b: 1, c: 2}> // 'a' | 'c'