defragment-array
Defragment An Array
Install
npm install defragment-array
Sample
If you have an array like this ['Audi', '', 'BMW', 'Audi', '', 'BMW', 'Audi', '', 'BMW'], the output will be something like below [ 'Audi', 'BMW', 'Audi', 'BMW', 'Audi', 'BMW', '', '', '' ]
License
MIT