|
1 年之前 | |
---|---|---|
.. | ||
lib | 1 年之前 | |
test | 1 年之前 | |
.npmignore | 1 年之前 | |
LICENSE | 1 年之前 | |
README.md | 1 年之前 | |
package.json | 1 年之前 |
Add an object to an array between each element.
npm install intersperse
var intersperse = require('intersperse');
var arr = intersperse([1, 2, 3], 'a');
console.log(arr) // [1, 'a', 2, 'a', 3]