Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    interspersepublic

    intersperse

    Add an object to an array between each element.

    Installation

    npm install intersperse
    

    Example

    var intersperse = require('intersperse');
    var arr = intersperse([1, 2, 3], 'a');
     
    console.log(arr) // [1, 'a', 2, 'a', 3] 

    Keywords

    none

    install

    npm i intersperse

    Downloadsweekly downloads

    211

    version

    1.0.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar