| Total Complexity | 4 |
| Complexity/F | 1.33 |
| Lines of Code | 1 |
| Function Count | 3 |
| Duplicated Lines | 1 |
| Ratio | 100 % |
| Changes | 0 | ||
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | View Code Duplication | if (typeof Object.create === 'function') { |
|
|
|
|||
| 2 | // implementation from standard node.js 'util' module |
||
| 24 |