Javascript has an Array.prototype.map
but there doesn't seem to be an equivalent for sets. What's the recommended way to run map on a set in Javascript?
EDIT: Adding an example as requested
users = new Set([1,2,3])
// throws an error:
// Uncaugh TypeError: users.map is not a function
users.map(n => n*n)