diff --git a/lib/index.js b/lib/index.js index ca3913d..3125db6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -186,15 +186,7 @@ const Channel = function(length = 0) { } }, - join: async separator => { - const elements = []; - - await readOnly.forEach(element => { - elements.push(element); - }); - - return elements.join(separator); - }, + join: async separator => (await readOnly.values()).join(separator), map: (callbackfn, thisArg) => { const output = Channel();