Horje
javascript compare sets Code Example
javascript compare sets
var a = new Set([1,2,3]);
var b = new Set([1,3,2]);

alert(eqSet(a, b)); // true

function eqSet(as, bs) {
    if (as.size !== bs.size) return false;
    for (var a of as) if (!bs.has(a)) return false;
    return true;
}




Javascript

Related
jq storage object on refresh Code Example jq storage object on refresh Code Example
escape double quotes in json Code Example escape double quotes in json Code Example
javascript find unique values in array of objects Code Example javascript find unique values in array of objects Code Example
remove list content js Code Example remove list content js Code Example
mongoose update array in object Code Example mongoose update array in object Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10