1.0.1 • Published 2 years ago

array-item-move-index v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

What is that?

You can move or replace any Index of Array . Thats means you easily move any item of array easily.

import from 'array-index-change'
const array1=[1,3,6]
arrayIndexChange = ( array1, old_index, new_index, 'position' );

Position : 'after'/ 'before'

arrayIndexChange = ( array1, 1, 0, 'after' );
restult is
[3,1,6]