Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
var Set = require('es6-set');
Set.prototype.map = function map(f, _this) {
f = _this ? f.bind(_this) : f;
var result = new Set();
this.forEach(function(a) {
result.add(f(a));
});
return result;
};
module.exports = Set;