"max-lines-per-function": "off",
"max-statements-per-line": "off",
"new-cap": "off",
- "no-else-return": "off",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-negated-condition": "off",
}
function decimalStep(number) {
var digits = ((Number(number)).toFixed(20)).replace(/^-?\d*\.?|0+$/g, "").length;
- if (digits === 0 || digits > 4) {
- return 0.1;
- } else {
- return 1.0 / (Math.pow(10, digits));
- }
+ return (digits === 0 || digits > 4) ? 0.1 : 1.0 / (Math.pow(10, digits));
}
function process_symbols_data(data) {
var items = [];