intersperse

Add an object to an array between each element

npm install intersperse
10 downloads in the last day
86 downloads in the last week
389 downloads in the last month

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]
npm loves you