mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove semicolons.
This commit is contained in:
8
last.js
8
last.js
@@ -7,12 +7,12 @@
|
||||
* @returns {*} Returns the last element of `array`.
|
||||
* @example
|
||||
*
|
||||
* last([1, 2, 3]);
|
||||
* last([1, 2, 3])
|
||||
* // => 3
|
||||
*/
|
||||
function last(array) {
|
||||
const length = array == null ? 0 : array.length;
|
||||
return length ? array[length - 1] : undefined;
|
||||
const length = array == null ? 0 : array.length
|
||||
return length ? array[length - 1] : undefined
|
||||
}
|
||||
|
||||
export default last;
|
||||
export default last
|
||||
|
||||
Reference in New Issue
Block a user