diff --git a/diff2.js b/diff2.js index 21df74c..b6f7844 100644 --- a/diff2.js +++ b/diff2.js @@ -234,6 +234,14 @@ var o = { object: { x: {}, }, + + array_with_attrs: Object.assign( + [1, 2, 3], + { + a: "some value", + // will overwrite 2... + 1: 333, + }) } // loop... o.object.y = o.object