Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 3 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | export default function getWeight(weight) { |
||
2 | return (weight || weight === 0) ? parseFloat(weight) : 1 |
||
3 | } |
||
4 |