Last analyzed 1ad4281 5 months ago
Default analysis branch is
Currently analyzing run
Operands must both be numbers or strings in addition expressions JS-0377
Anti-pattern
a year agoa year old
Operands to the + operator should be both numbers or both strings
 8
 9  const i = Math.floor(Math.log(bytes) / Math.log(k));
10
11  return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];12}
13
14export default FormatBytes;