function initArrayClone(array, isDeep) {
      var index = -1,
          length = array.length,
          result = new array.constructor(length);

      if (!isDeep) {
        while (++index < length) {
          result[index] = array[index];
        }
      }
      // add array properties assigned by `RegExp#exec`
      if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
        result.index = array.index;
        result.input = array.input;
      }
      return result;
    }
Initializes an array clone.

@private
@param {Array} array The array to clone.
@param {boolean} [isDeep=false] Specify a deep clone.
@returns {Array} Returns the initialized array clone.