• Tests if container array contains values array.

    The values check should be primitive javascript types (String, number, boolean, null, undefined, etc.). and not Object instances.

    Example

    expect(isArrayContainerOf([2,3,4],[2,3]).value).toBeTruthy()
    

    Returns

    True if array contains all values from the given target array, false otherwise.

    Example

    expect(isArrayContainerOf([2,3,4,2], [2,3,4])).value).toBeTruthy()
    

    Parameters

    • container: any[]

      The container.

    • values: any[]

      The array of values that may be contained.

    Returns Result<boolean | undefined>

Generated using TypeDoc