@feizheng/next-toggle

1.0.1 • Public • Published

next-toggle

Toggle array element.

version license size download

installation

npm install -S @feizheng/next-toggle

usage

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-toggle

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.52 kB

Total Files

5

Last publish

Collaborators

  • afeiship