Home / Function/ generateGrid() — vue Function Reference

generateGrid() — vue Function Reference

Architecture documentation for the generateGrid() function in common.js from the vue codebase.

Entity Profile

Relationship Graph

Source Code

benchmarks/ssr/common.js lines 12–24

function generateGrid (rowCount, columnCount) {
  var grid = []

  for (var r = 0; r < rowCount; r++) {
    var row = { id: r, items: [] }
    for (var c = 0; c < columnCount; c++) {
      row.items.push({ id: (r + '-' + c) })
    }
    grid.push(row)
  }

  return grid
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free