Last active
June 3, 2018 10:37
-
-
Save WaldoJeffers/320909acc116af0a253ed2cdd8f4248b to your computer and use it in GitHub Desktop.
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
import { add, mergeWith } from 'conductor' | |
const mergeByAdding = mergeWith(add) | |
// mergeByAdding({ Alderaan: 1, Tattooine: 2 }, { Tattooine: 1 }) | |
// == { Alderaan: 1, Tattooine: 3 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment