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

utils/last
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Returns the last 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/last in your project
npm i @bit/bit.ramda.utils.last
Copied

last (list:*) : *

Returns the last element of the given list or string.

Example

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

     R.last('abc'); //=> 'c'
     R.last(''); //=> ''

Argument

list: *

Returns

*