'how match match two array which are not in order using typescript
I have 2 array which are nor in order i want find if they are same or not my 1st array
[
{
"attributeName": "COLOR",
"attributeData": "BLUE"
},
{
"attributeName": "SIZE",
"attributeData": "36"
}
]
List2:
[
{
"attributeName": "SIZE",
"attributeData": "36"
},
{
"attributeName": "COLOR",
"attributeData": "BLUE"
}
]
here 2 list is same but order are not same. How can I compare this kind of list using typescript.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
