Skip to content

How to output fewer records (by slice, limit, breaking the loop, etc)? #37

@truetonegroup

Description

@truetonegroup

How can I limit my output to fewer values than the original data?

My source has 50 records but I only want to end up with 5.

I was thinking that would work with a slice function or a {break;} when the i > 4 but I can't figure out where to put those in the code.

Thanks,
Andy

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