app/service/numberService.js
Function compactInteger
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compactInteger(input, decimals) {
decimals = decimals || 0;
decimals = Math.max(decimals, 0);
var number = parseInt(input, 10);
var signString = number < 0 ? '-' : '';