8000 GitHub - bogini/move: Move lodash mixin. Move an item in array. · GitHub
[go: up one dir, main page]

Skip to content
boginiPublic
forked from granteagon/move

About

Move lodash mixin. Move an item in array.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

_.move LoDash mixin

Move an item in an array

npm install lodash-move

LoDash issue is here. Give it a 👍 if you want to see it added to Lodash.

Example

5920
move(['a', 'b', 'c'], 2, 0)
// -> ['c', 'a', 'b']

move([{name: 'Fred'}, {name: 'Barney'}, {name: 'Wilma'}, {name: 'Betty'}], 2, 1)
// -> [{name: 'Fred', name: 'Wilma', name: 'Barney', name: 'Betty'}]

About

Move lodash mixin. Move an item in array.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0