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,6 +1,6 @@
import baseSlice from './.internal/baseSlice.js';
import isIterateeCall from './.internal/isIterateeCall.js';
import toInteger from './toInteger.js';
import baseSlice from './.internal/baseSlice.js'
import isIterateeCall from './.internal/isIterateeCall.js'
import toInteger from './toInteger.js'
/**
* Creates a slice of `array` from `start` up to, but not including, `end`.
@@ -17,19 +17,19 @@ import toInteger from './toInteger.js';
* @returns {Array} Returns the slice of `array`.
*/
function slice(array, start, end) {
const length = array == null ? 0 : array.length;
const length = array == null ? 0 : array.length
if (!length) {
return [];
return []
}
if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
start = 0;
end = length;
start = 0
end = length
}
else {
start = start == null ? 0 : toInteger(start);
end = end === undefined ? length : toInteger(end);
start = start == null ? 0 : toInteger(start)
end = end === undefined ? length : toInteger(end)
}
return baseSlice(array, start, end);
return baseSlice(array, start, end)
}
export default slice;
export default slice