On this page

    M

    util.isPartialDeepStrictEqual

    History
    util.isPartialDeepStrictEqual(val1, val2): boolean
    Attributes
    val1:any
    val2:any
    Returns:boolean

    Returns true if there is partial deep strict equality between val1 and val2. Otherwise, returns false.

    "Partial" equality means that only properties that exist on val2 are going to be compared.

    See assert.partialDeepStrictEqual() for more information about partial deep strict equality.