Use more destructuring.

This commit is contained in:
John-David Dalton
2017-03-12 23:16:34 -07:00
parent ad3236a859
commit c89637e4db
17 changed files with 17 additions and 17 deletions

View File

@@ -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`.