code: function (data, length) {
          !_.isArray(data) && (data = [{}]);
          ((length < 1) || !_.isFinite(length)) && (length = data.length);
  
          // if the iteration count is greater than the length of data, we repeat the last item in data. here, we are
          // using a for-loop so that we do not have excessive spatial complexity
          if (length > data.length) {
              for (var i = data.length, filler = data[i - 1]; i < length; i++) {
                  data[i] = filler;
              }
          }
  
          // just to be sure that there are no extra items in array, we match the lengths and return the data
          data.length = length;
  
          return data;
      }
docs: @private
  
  @param {Array} data
  @param {Number} length
  @returns {Array}