Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zntgrf/arraysplicereorder
https://github.com/zntgrf/arraysplicereorder
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/zntgrf/arraysplicereorder
- Owner: zntgrf
- Created: 2022-11-28T21:29:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-15T16:29:16.000Z (about 2 months ago)
- Last Synced: 2024-11-15T17:19:41.038Z (about 2 months ago)
- Language: TypeScript
- Size: 3.51 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ArraySpliceReorder
Mit dieser Funktion kann man ein Array auf basis der splice-Funktion neu sortieren.
## Beispiel
```js
const base = [0,1,2,3,4,5,6,7,8];const new = arraySpliceReorder(base, [-1,0,-1]);
// output: [8,0,7,6,1,5,4,2,3]
```