Consistent TypeOf
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.6k
- Forks
- 179
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- backend, tooling
- Tipo de issue
- Refactorización
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 75/100