---
id: 3851
title: 'util.Array: toggle() add a 3rd param to enforce add or remove'
state: CLOSED
labels:
  - enhancement
assignees:
  - tobiu
createdAt: '2023-01-14T17:38:29Z'
updatedAt: '2023-01-14T17:43:17Z'
githubUrl: 'https://github.com/neomjs/neo/issues/3851'
author: tobiu
commentsCount: 0
parentIssue: null
subIssues: []
subIssuesCompleted: 0
subIssuesTotal: 0
blockedBy: []
blocking: []
closedAt: '2023-01-14T17:43:17Z'
---
# util.Array: toggle() add a 3rd param to enforce add or remove

@maxrahder 

optional convenience param to reduce boilerplate logic for `add()` and `remove()` calls.

## Timeline

- 2023-01-14T17:38:29Z @tobiu added the `enhancement` label
- 2023-01-14T17:38:29Z @tobiu assigned to @tobiu
- 2023-01-14T17:42:58Z @tobiu referenced in commit `65d875f` - "util.Array: toggle() add a 3rd param to enforce add or remove #3851"
- 2023-01-14T17:43:17Z @tobiu closed this issue

