Merges MatcherPatterns (of the specific object type). classes of the resulting
pattern will be true if any of the patterns set classes to true.
For name and nested attributes patterns later in the list may override
previously defined definitions. Thus, merging
[{ name: "a" }, { name: "b" }] will result in pattern { name: "b" }.
Merges MatcherPatterns (of the specific object type).
classes
of the resulting pattern will betrue
if any of the patterns setclasses
totrue
. Forname
and nestedattributes
patterns later in the list may override previously defined definitions. Thus, merging[{ name: "a" }, { name: "b" }]
will result in pattern{ name: "b" }
.