mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Use more destructuring.
This commit is contained in:
@@ -132,7 +132,7 @@ function initCloneByTag(object, tag, cloneFunc, isDeep) {
|
||||
* @returns {Array} Returns the initialized clone.
|
||||
*/
|
||||
function initCloneArray(array) {
|
||||
const length = array.length
|
||||
const { length } = array
|
||||
const result = new array.constructor(length)
|
||||
|
||||
// Add properties assigned by `RegExp#exec`.
|
||||
|
||||
Reference in New Issue
Block a user