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

16
nth.js
View File

@@ -1,5 +1,5 @@
import baseNth from './.internal/baseNth.js';
import toInteger from './toInteger.js';
import baseNth from './.internal/baseNth.js'
import toInteger from './toInteger.js'
/**
* Gets the element at index `n` of `array`. If `n` is negative, the nth
@@ -12,16 +12,16 @@ import toInteger from './toInteger.js';
* @returns {*} Returns the nth element of `array`.
* @example
*
* const array = ['a', 'b', 'c', 'd'];
* const array = ['a', 'b', 'c', 'd']
*
* nth(array, 1);
* nth(array, 1)
* // => 'b'
*
* nth(array, -2);
* // => 'c';
* nth(array, -2)
* // => 'c'
*/
function nth(array, n) {
return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
return (array && array.length) ? baseNth(array, toInteger(n)) : undefined
}
export default nth;
export default nth