Descripción
Create an empty 2D array with fixed rows and columns
File Template: ❌
Prefix
arr2:new
Scopes
typescript
Snippet de código
const ${1:matrix}: ${2:number}[][] = Array.from({ length: ${3:rows} }, () => new Array(${4:cols}));
Create an empty 2D array with fixed rows and columns
arr2:new
typescript
const ${1:matrix}: ${2:number}[][] = Array.from({ length: ${3:rows} }, () => new Array(${4:cols}));