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

@@ -1,4 +1,4 @@
import isIndex from './isIndex.js';
import isIndex from './isIndex.js'
/**
* The base implementation of `nth` which doesn't coerce arguments.
@@ -9,12 +9,12 @@ import isIndex from './isIndex.js';
* @returns {*} Returns the nth element of `array`.
*/
function baseNth(array, n) {
const length = array.length;
const length = array.length
if (!length) {
return;
return
}
n += n < 0 ? length : 0;
return isIndex(n, length) ? array[n] : undefined;
n += n < 0 ? length : 0
return isIndex(n, length) ? array[n] : undefined
}
export default baseNth;
export default baseNth