odd-index-unshift

0.0.1 • Public • Published

odd-index-unshift

Unshift the odd index items of an array

build status

Installation

npm install odd-index-unshift --save

Usage

var oddIndexUnshift = require('./')
 
console.log(oddIndexUnshift([ 1, 2, 3, 4, 5, 6 ]))
// Equals => [ 1, 3, 5, 2, 4, 6 ]

var oddUnshiftedArray = oddIndexUnshift(array)

Options must include:

  • array - an array to unshift

Credits

Dom Harrington

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i odd-index-unshift

    Weekly Downloads

    3

    Version

    0.0.1

    License

    ISC

    Last publish

    Collaborators

    • domharrington