# @feizheng/next-toggle

> Toggle array element.

Latest version **1.0.1** (published 2020-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feizheng/next-toggle
pnpm add @feizheng/next-toggle
yarn add @feizheng/next-toggle
bun add @feizheng/next-toggle
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-08-04 |
| First published | 2020-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |

## Links

- npm: https://www.npmjs.com/package/@feizheng/next-toggle
- Homepage: https://github.com/afeiship/next-toggle
- npm.io page: https://npm.io/package/@feizheng/next-toggle

## Recent versions

- 1.0.1 (latest) — 2020-08-04
- 1.0.0 — 2020-04-09

## README

# next-toggle
> Toggle array element.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @feizheng/next-toggle
```

## usage
```js
import '@feizheng/next-toggle';

const arr = [1,2,3,4];

nx.toggle(arr, 5);
// [1,2,3,4,5]
nx.toggle(arr, 5);
// [1,2,3,4]
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-toggle/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/next-toggle
[version-url]: https://npmjs.org/package/@feizheng/next-toggle

[license-image]: https://img.shields.io/npm/l/@feizheng/next-toggle
[license-url]: https://github.com/afeiship/next-toggle/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@feizheng/next-toggle
[size-url]: https://github.com/afeiship/next-toggle/blob/master/dist/next-toggle.min.js

[download-image]: https://img.shields.io/npm/dm/@feizheng/next-toggle
[download-url]: https://www.npmjs.com/package/@feizheng/next-toggle

---
_Source: https://npm.io/package/@feizheng/next-toggle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
