odd-index-unshift
Unshift the odd index items of an array
Installation
npm install odd-index-unshift --save
Usage
var oddIndexUnshift = console// Equals => [ 1, 3, 5, 2, 4, 6 ]
var oddUnshiftedArray = oddIndexUnshift(array)
Options must include:
array
- an array to unshift