# 58. implement Diff<A, B>

TypeScriptShare

- accepted / - tried

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'`

Share

- accepted / - tried

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'`