The JSDoc on map indicates that input can be an iterable, however it doesn't seem to work with other objects that implement the iterable protocol including built-in ones like Set.
Test Case
const P = require('blend-promise-utils');
const main = async function () {
const numbers = new Set([1, 2, 3]);
await P.map(numbers, function (number) {
console.log(number);
});
};
main();
Expected output
Actual output