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);
});
};
m
6D5D
ain();
Expected output
Actual output
The JSDoc on
mapindicates thatinputcan be an iterable, however it doesn't seem to work with other objects that implement the iterable protocol including built-in ones likeSet.Test Case
Expected output
Actual output