index.js
Function toDecimalString
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toDecimalString(buffer, options) {
options = options || {};
var bits = buffer.length * 8, // number of bits in the buffer
lastBit = buffer.length - 1, // last bit index
digits = createBuffer(Math.floor(bits / 3 + 1 + 1)), // digits buffer