1602 / 1602/compound

Consistent TypeOf

Offen Anfängerfreundlich
#627 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
1.6k
Forks
179
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The code has mixed style between `TypeOf something === function` and `function === TypeOf something`.

https://github.com/1602/compound/blob/master/lib/controller-extensions.js#L137
https://github.com/1602/compound/blob/master/lib/controller-extensions.js#L304
https://github.com/1602/compound/blob/master/lib/controller-extensions.js#L307
https://github.com/1602/compound/blob/master/lib/compound.js#L167
https://github.com/1602/compound/blob/master/lib/compound.js#L257
https://github.com/1602/compound/blob/master/lib/compound.js#L264

Most are `if (typeof VAR === 'function') {` style. So it wouldn't hurt to stick to it.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

The issue points to specific lines in lib/controller-extensions.js and lib/compound.js. Open those files, find the typeof checks, and change any `function === typeof VAR` patterns to `typeof VAR === 'function'`. Run any existing tests to ensure the changes don't break functionality.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, node.js
Bereich
backend, tooling
Issue-Typ
Refactoring
Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
75/100

Neue Issues direkt in Ihr Postfach

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