Function deepCompare

  • Deep Compare Objects

    Type Parameters

    • Object extends Record<any, any>
    • Compare extends Record<any, any>

    Parameters

    Returns compare is Object

    Example

    import { object } from "@rjweb/utils"

    object.deepCompare({ ok: true, e: { g: 0 } }, { ok: true, e: {} }) // false
    object.deepCompare({ ok: true, e: { g: 0 } }, { ok: true, e: { g: 0 } }) // true

    Since

    1.0.0

    Supports

    nodejs, browser