Share your code. Components are building blocks, you are the architect.

utils/intersperse
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Creates a new list with the separator interposed between elements

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/intersperse in your project
npm i @bit/bit.ramda.utils.intersperse
Copied

intersperse (separator:*, list:Array) : Array

Creates a new list with the separator interposed between elements.

Dispatches to the intersperse method of the second argument, if present.

Example

R.intersperse('n', ['ba', 'a', 'a']); //=> ['ba', 'n', 'a', 'n', 'a']

Arguments

separator: *

The element to add to the list.

list: Array

The list to be interposed.

Returns

Array

The new list.