i have two arrays and want to check if all IDs is the same or not
let a = [
{id:0, name:"test0"},
{id:1, name:"test1"}
];
let b = [
{id:0, name:"test0"},
{id:1, name:"test1"}
];
the above arrays we see it's equal
and the way I tired like this
JSON.stringify(a) === JSON.stringify(b) => True
I read the JSON.stringify
it's affected the Performance if we have big arrays
so is there another way to get the same result?