-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I think it would be handy to have array-like helper functions in the core or utils/helpers package.
const numbersChannel = new Channel<number>(() => {});
const oddNumbersChannel = filterChannel(numbersChannel, item => item % 2 !== 0);
const evenNumbersChannel = filterChannel(numbersChannel, item => item % 2 === 0);
const stringOddNumbersChannel = mapChannel(oddNumbersChannel, item => item.toString());Can't think of about any other from the top of my head. These should probably be functions and not instance level methods so the API doesn't differ from async iterators.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request