1.0.0 • Published 5 years ago

@jswork/next-swap v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

next-swap

Array swap for next.

version license size download

installation

npm install -S @jswork/next-swap

usage

import '@feizheng/next-swap';

const arr = [1, 2, 3, 4];
nx.swap(arr, 0, 3);

// [4, 2, 3, 1]

resources

license

Code released under the MIT license.