mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Apply even more let/const transforms.
This commit is contained in:
@@ -15,7 +15,7 @@ import baseSlice from './_baseSlice.js';
|
||||
* // => [1, 2]
|
||||
*/
|
||||
function initial(array) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
const length = array == null ? 0 : array.length;
|
||||
return length ? baseSlice(array, 0, -1) : [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user