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

utils/prepend
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns a new list with the given element at the front, followed by the

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/prepend in your project
npm i @bit/bit.ramda.utils.prepend
Copied

prepend (el:*, list:Array) : Array

Returns a new list with the given element at the front, followed by the contents of the list.

Example

R.prepend('fee', ['fi', 'fo', 'fum']); //=> ['fee', 'fi', 'fo', 'fum']

Arguments

el: *

The item to add to the head of the output list.

list: Array

The array to add to the tail of the output list.

Returns

Array

A new array.