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

utils/head
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Returns the first element of the given list or string

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

head (list:(Array | String)) : *

Returns the first element of the given list or string. In some libraries this function is named first.

Example

R.head(['fi', 'fo', 'fum']); //=> 'fi'
     R.head([]); //=> undefined

     R.head('abc'); //=> 'a'
     R.head(''); //=> ''

Argument

list: (Array | String)

Returns

*