I would like to compare unordered lists / objects with an indeterminate depth in javascript like:
const t = {
key: [
{
subKey: [
{
subSubKeyOne: 1,
subSubKeyTwo: 2,
}
]
}
]
}
I don't want to sort the Arrays myself, as I don't know what things it contains at the start (objects, arrays, number, string...). Is there any lib that is mainly used for that type of problem ?