Add `uniqueArrayItems` option + update dependencies
Changes
This version includes a new option - uniqueArrayItems. If you provide it with false it will allow duplicate array items:
import merge from "ts-deepmerge";
const objA = { array: ["a", "b"] };
const objB = { array: ["b", "c"] };
merge.withOptions({ uniqueArrayItems: false }, objA, objB);The result of the above example would be:
{ array: ["a", "b", "b", "c"] }Thanks to @KlutzyBubbles for raising an issue (#27) asking for this feature🙏