Skip to content

add pop, shift, unshift to STArray #151

Closed
@hdgarrood

Description

@hdgarrood

Just like the methods of the same names on a JS Array:

  • pop removes the last item of an array and returns that item
  • shift removes the first item of an array and returns that item
  • unshift takes an item and sets it as the first element of the array, shifting everything else along by 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions