Checks if an array contains a subsequence using deep equality.
The function verifies that all expected members appear in the array in the specified order, but they don't need to be consecutive - other elements can appear between them. This is subsequence matching with deep equality, suitable for arrays containing objects or nested structures.
The expected members that should appear in order (with possible gaps)
OptionalevalMsg: MsgSource
Optional custom error message
The current assertion scope for chaining
assert([{a: 1}, {b: 2}, {c: 3}]).deep.includes.subsequence([{a: 1}, {c: 3}]); // Passes
assert([{a: 1}, {b: 2}, {c: 3}]).deep.includes.subsequence([{b: 2}]); // Passes
assert([{a: 1}, {b: 2}, {c: 3}]).deep.includes.subsequence([{c: 3}, {a: 1}]); // Fails - wrong order
assert(new Set([{a: 1}, {b: 2}])).deep.includes.subsequence([{a: 1}]); // Passes - different types
Export assertion functions