Consistent TypeOf
- Langage dominant
- JavaScript
- Étoiles
- 1.6k
- Forks
- 179
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, node.js
- Domaine
- backend, tooling
- Type d'issue
- Refactorisation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 75/100