deeplyEqual

expect fun deeplyEqual(obj1: Any?, obj2: Any?): Boolean

Checks whether two plain object trees (obj1 and obj2) are structurally equal, i.e. equal maps/lists of equal elements and numbers compared by their textual value (so that, e.g., 1 and 1.0 need not compare equal, but a Long and an Int holding the same value do). Useful to compare objects obtained from differently-formatted (but equivalent) input, irrespective of key/element order or numeric type.

actual fun deeplyEqual(obj1: Any?, obj2: Any?): Boolean

Checks whether two plain object trees (obj1 and obj2) are structurally equal, i.e. equal maps/lists of equal elements and numbers compared by their textual value (so that, e.g., 1 and 1.0 need not compare equal, but a Long and an Int holding the same value do). Useful to compare objects obtained from differently-formatted (but equivalent) input, irrespective of key/element order or numeric type.

actual fun deeplyEqual(obj1: Any?, obj2: Any?): Boolean

Checks whether two plain object trees (obj1 and obj2) are structurally equal, i.e. equal maps/lists of equal elements and numbers compared by their textual value (so that, e.g., 1 and 1.0 need not compare equal, but a Long and an Int holding the same value do). Useful to compare objects obtained from differently-formatted (but equivalent) input, irrespective of key/element order or numeric type.