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]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    27,032
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    27,032

Package Sidebar

Install

npm i intersperse

Weekly Downloads

27,032

Version

1.0.0

License

MIT

Last publish

Collaborators

  • curvedmark