mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Use more destructuring.
This commit is contained in:
@@ -12,7 +12,7 @@ const PLACEHOLDER = '__lodash_placeholder__'
|
||||
*/
|
||||
function replaceHolders(array, placeholder) {
|
||||
let index = -1
|
||||
const length = array.length
|
||||
const { length } = array
|
||||
let resIndex = 0
|
||||
const result = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user