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
@@ -235,11 +233,13 @@ You can add a third `options` parameter to `getListDiff`.
235
233
{
236
234
showOnly?: ("added"|"deleted"|"moved"|"updated"|"equal")[], // [] by default
237
235
referenceProperty?:string; // "" by default
236
+
ignoreArrayOrder?:boolean// false by default,
238
237
}
239
238
```
240
239
241
240
-`showOnly` gives you the option to return only the values whose status you are interested in (e.g. `["added", "equal"]`).
242
241
-`referenceProperty` will consider an object to be updated instead of added or deleted if one of its properties remains stable, such as its `id`. This option has no effect on other datatypes.
242
+
-`ignoreArrayOrder`: if set to `true`, `["hello", "world"]` and `["world", "hello"]` will be treated as `equal`, because the two arrays have the same value, just not in the same order.
0 commit comments