Checks if an array ends with a specific sequence of members using strict equality.
The function verifies that the last N elements of the array match the expected sequence,
where N is the length of the expected array. Uses strict equality (===) for comparison.
The expected sequence that should appear at the end of the array
OptionalevalMsg: MsgSource
Optional custom error message
The current assertion scope for chaining
assert([1, 2, 3, 4, 5]).has.endsWithMembers([4, 5]); // Passes
assert([1, 2, 3, 4, 5]).has.endsWithMembers([5]); // Passes
assert([1, 2, 3, 4, 5]).has.endsWithMembers([3, 4]); // Fails - doesn't end with [3, 4]
assert([1, 2, 3]).has.endsWithMembers([]); // Passes - empty sequence
assert(new Set([1, 2, 3])).has.endsWithMembers([2, 3]); // Passes - different types
Export assertion functions