CodingTrain / CodingTrain/Suggestion-Box

More on arrays in JS

Offen
#100 4 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
570
Forks
85
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Following up from 2D array video #46, this interesting solution was pointed out to me in the YouTube comments:

``` javascript
make2Darr = function(r, c) {
return new Array(c).fill([]).map(e => new Array(r));
}
```

Would love to investigate `fill()` and `map()` in a future video. What else? There is also #89 which relates to this topic.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Review the 2D array video referenced as #46, the related issue #89, and the proposed JavaScript snippet. Decide whether a future video should cover fill() and map(), then define the topic scope and what the completed video should explain.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
content
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.