Skip to content

Allow negative values in take and skip operations #50

@the-spyke

Description

@the-spyke
pullArray(
  take(-2)
, [1, 2, 3, 4, 5]);
// [ 4, 5 ]
pullArray(
  skip(-2)
, [1, 2, 3, 4, 5]);
// [ 1, 2, 3 ]

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