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 baseRandom from './baseRandom.js';
import baseRandom from './baseRandom.js'
/**
* A specialized version of `sample` for arrays.
@@ -8,8 +8,8 @@ import baseRandom from './baseRandom.js';
* @returns {*} Returns the random element.
*/
function arraySample(array) {
const length = array.length;
return length ? array[baseRandom(0, length - 1)] : undefined;
const length = array.length
return length ? array[baseRandom(0, length - 1)] : undefined
}
export default arraySample;
export default arraySample