init
This commit is contained in:
26
node_modules/ramda/es/last.js
generated
vendored
Normal file
26
node_modules/ramda/es/last.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import nth from "./nth.js";
|
||||
/**
|
||||
* Returns the last element of the given list or string.
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.1.4
|
||||
* @category List
|
||||
* @sig [a] -> a | Undefined
|
||||
* @sig String -> String
|
||||
* @param {*} list
|
||||
* @return {*}
|
||||
* @see R.init, R.head, R.tail
|
||||
* @example
|
||||
*
|
||||
* R.last(['fi', 'fo', 'fum']); //=> 'fum'
|
||||
* R.last([]); //=> undefined
|
||||
*
|
||||
* R.last('abc'); //=> 'c'
|
||||
* R.last(''); //=> ''
|
||||
*/
|
||||
|
||||
var last =
|
||||
/*#__PURE__*/
|
||||
nth(-1);
|
||||
export default last;
|
Reference in New Issue
Block a user