Function notHasMembers

  • check that the members in second array are present in the first one

    Type Parameters

    • T

    Parameters

    • actual: T[]
    • expected: T[]
    • Optionaloptions: HasMembersOptions
    • Optionalmessage: string

    Returns void

    hasMembers([1], [1]);
    hasMembers([1, 2], [2, 1]);
    hasMembers([{ a: 1 }], [{ a: 1 }], { deep: true });