Skip to content

Important Tip: Introducing New Values into a Stream #219

@simplygreatwork

Description

@simplygreatwork

When working with transform streams in Node.js, it's obvious how to push new values onto the stream - you simply just push additional values onto the next stream handler. With Lazy.js, underscore, lodash, etc - it's not as obvious how to introduce new values into the stream. In Lazy.js, several API calls exist to exclude or filter values, but few for introducing new values. One way to do it is to have the map() function return an array and then call flatten() next.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions