intersperse
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/intersperse package

1.0.0 • Public • Published

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]

Readme

Keywords

none

Package Sidebar

Install

npm i intersperse

Weekly Downloads

21,218

Version

1.0.0

License

MIT

Last publish

Collaborators

  • curvedmark