Skip to content

Instantly share code, notes, and snippets.

@ridheshcybe
Created February 25, 2022 09:47
Show Gist options
  • Save ridheshcybe/7f1630bb7c8805a3499817449df099c4 to your computer and use it in GitHub Desktop.
Save ridheshcybe/7f1630bb7c8805a3499817449df099c4 to your computer and use it in GitHub Desktop.
mixin function in typescript
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