mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove semicolons.
This commit is contained in:
@@ -9,23 +9,23 @@
|
||||
*/
|
||||
function baseSlice(array, start, end) {
|
||||
let index = -1,
|
||||
length = array.length;
|
||||
length = array.length
|
||||
|
||||
if (start < 0) {
|
||||
start = -start > length ? 0 : (length + start);
|
||||
start = -start > length ? 0 : (length + start)
|
||||
}
|
||||
end = end > length ? length : end;
|
||||
end = end > length ? length : end
|
||||
if (end < 0) {
|
||||
end += length;
|
||||
end += length
|
||||
}
|
||||
length = start > end ? 0 : ((end - start) >>> 0);
|
||||
start >>>= 0;
|
||||
length = start > end ? 0 : ((end - start) >>> 0)
|
||||
start >>>= 0
|
||||
|
||||
const result = Array(length);
|
||||
const result = Array(length)
|
||||
while (++index < length) {
|
||||
result[index] = array[index + start];
|
||||
result[index] = array[index + start]
|
||||
}
|
||||
return result;
|
||||
return result
|
||||
}
|
||||
|
||||
export default baseSlice;
|
||||
export default baseSlice
|
||||
|
||||
Reference in New Issue
Block a user