mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Use the new operator with the Array constructor.
This commit is contained in:
@@ -11,7 +11,7 @@ import get from '../get.js'
|
||||
function baseAt(object, paths) {
|
||||
let index = -1
|
||||
const length = paths.length
|
||||
const result = Array(length)
|
||||
const result = new Array(length)
|
||||
const skip = object == null
|
||||
|
||||
while (++index < length) {
|
||||
|
||||
Reference in New Issue
Block a user