You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getObjectDiff() and isEqual now accept a facultative options parameter:
{discardArrayOrder?: boolean// false by default}
If discardArrayOrder is set to true, ["hello", "world"] and ["world", "hello"] will be considered as equal, because the two arrays have the same values, just not in the same order.
add buy me a coffee link. If you use the lib, feel free to show your support.
This discussion was created from the release v1.0.5.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
getObjectDiff()
andisEqual
now accept a facultativeoptions
parameter:If
discardArrayOrder
is set to true,["hello", "world"]
and["world", "hello"]
will be considered asequal
, because the two arrays have the same values, just not in the same order.This discussion was created from the release v1.0.5.
Beta Was this translation helpful? Give feedback.
All reactions