/merge_vs_immer

Simple test putting lodash merge vs immer on trial

Primary LanguageJavaScript

output

ORIGINAL: { houses:
   { gryffindor: { points: 15 },
     ravenclaw: { points: 18 },
     hufflepuff: { points: 7 },
     slytherin: { points: 5 } } }
IMMER: { houses:
   { gryffindor: { points: 15 },
     ravenclaw: { points: 21 },
     hufflepuff: { points: 7 },
     slytherin: { points: 5 } } }

ORIGINAL: { houses:
   { gryffindor: { points: 15 },
     ravenclaw: { points: 18 },
     hufflepuff: { points: 7 },
     slytherin: { points: 5 } } }
LODASH MERGE: { houses:
   { gryffindor: { points: 15 },
     ravenclaw: { points: 21 },
     hufflepuff: { points: 7 },
     slytherin: { points: 5 } } }