merge-deep icon indicating copy to clipboard operation
merge-deep copied to clipboard

Why is this 2x the size of mixin-deep?

Open doublemarked opened this issue 6 years ago • 2 comments

Is there any functional difference between,

  // 3.5Kb
  result = mergeDeep(obj1, obj2)

  // 1.1Kb
  result = mixinDeep({}, obj1, obj2)

doublemarked avatar Jun 27 '18 12:06 doublemarked

From the readme:

image

jonschlinkert avatar Jul 13 '18 13:07 jonschlinkert

@jonschlinkert I saw that, but it doesn't answer my question. I believe the examples I wrote above demonstrate how you can use either library to accomplish the same behavior as mergeDeep, but mixinDeep is 1/3 the size.

Is there any functional difference between those two lines I wrote?

doublemarked avatar Jul 13 '18 13:07 doublemarked