Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -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