Created
February 25, 2022 09:47
-
-
Save ridheshcybe/7f1630bb7c8805a3499817449df099c4 to your computer and use it in GitHub Desktop.
mixin function in typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const mixin = <a, b>(a: a, b: b): a & b => Object.assign(a, b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment