A simple and quick deep equal objects utility. This is meant to be used
solely to deduplicate requests payload and perform comparison on JSON ready
objects made of primitives string, number and booleans.
It support nested objects and arrays only.
NB: undefined and null values do not count in the comparison as they are
usually meant to be ignored in JSON requestBody payloads.
According to very rudimentary tests this function takes on average between
0.15 ms and 2ms to compare two averaged sizes requet body payloads.
A simple and quick deep equal objects utility. This is meant to be used solely to deduplicate requests payload and perform comparison on JSON ready objects made of primitives
string,numberandbooleans.It support nested
objects andarrays only.NB:
undefinedandnullvalues do not count in the comparison as they are usually meant to be ignored in JSON requestBody payloads.According to very rudimentary tests this function takes on average between 0.15 ms and 2ms to compare two averaged sizes requet body payloads.