How function in return statement works?

I cant able to understand the following piece of code.what does the third line of code means?

this.subset = function(otherSet) {
    var firstSet = this.values();
    return firstSet.every(function(value) {
        return otherSet.has(value);
    });
};

It returns every value from firstSet that is also in otherSet

Still dont get it

Sorry got it…

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.