Method move documentation
Moves an element to a different position within the given array.
Example
```javascript
bbbn.fn.move([
{movie: "Brazil", year: 1985},
{movie: "Donnie Darko", year: 2001},
{movie: "Out of Africa", year: 1985}
], 1, 2);
// [
// {movie: "Brazil", year: 1985},
// {movie: "Out of Africa", year: 1985},
// {movie: "Donnie Darko", year: 2001}
// ]
```
@example
```javascript
bbn.fn.move([1, 2, 3, 4], 3, 0);
// [4, 1, 2, 3]
```
Moves an element to a different position within the given array. - The same array is returned, with its elements reordered according to the executed movement.
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions