Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flpvsk/array-cut-and-paste

Cut and paste element in the array.
https://github.com/flpvsk/array-cut-and-paste

Last synced: about 1 month ago
JSON representation

Cut and paste element in the array.

Awesome Lists containing this project

README

        

## array-cut-and-paste

```js
import cutAndPaste from 'array-cut-and-paste';

const arr = [0, 1, 2, 3];
const result = cutAndPaste(arr, 0, 3);
console.log(result); // [1, 2, 3, 0]
```

### License

array-cut-and-paste is freely distributable under the terms of the MIT
license.