src/base/utils.js
function deepCloneArray(arr) {
  const clone = [];
  forEach(arr, (item, index) => {
    if (typeof item === "object" && item !== null) {
      if (isArray(item)) {
        clone[index] = deepCloneArray(item);
      } else if (isSpecificValue(item)) {
        clone[index] = cloneSpecificValue(item);
      } else {
        clone[index] = deepExtend({}, item);
      }
    } else {
      clone[index] = item;
    }
  });
  return clone;
}
function deepCloneArray(arr) {
  const clone = [];
  forEach(arr, (item, index) => {
    if (typeof item === "object" && item !== null) {
      if (isArray(item)) {
        clone[index] = deepCloneArray(item);
      } else if (isSpecificValue(item)) {
        clone[index] = cloneSpecificValue(item);
      } else {
        clone[index] = deepExtend({}, item);
      }
    } else {
      clone[index] = item;
    }
  });
  return clone;
}
function deepCloneArray ( arr ) { const clone = [ ] ; forEach ( arr , ( item , index ) => { if ( typeof item === "object" && item !== null ) { if ( isArray ( item ) ) { clone [ index ] = deepCloneArray ( item ) ; } else if ( isSpecificValue ( item ) ) { clone [ index ] = cloneSpecificValue ( item ) ; } else { clone [ index ] = deepExtend ( { } , item ) ; } } else { clone [ index ] = item ; } } ) ; return clone ; }
Recursive cloning array.
Recursive cloning array .