array-item-move-index

1.0.1 • Public • Published

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]

Package Sidebar

Install

npm i array-item-move-index

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

1.52 kB

Total Files

3

Last publish

Collaborators

  • prosohel