(kb)
| 26 | const num = (v) => typeof v === 'number' && Number.isFinite(v) ? v : 0; |
| 27 | |
| 28 | function humanMinMBFromKB(kb){ return humanBytes(num(kb) * 1000, 1000 * 1000); } |
| 29 | function humanMinMBFromMB(mb){ return humanBytes(num(mb) * 1000 * 1000, 1000 * 1000); } |
| 30 | function humanMinMBFromB(bytes){ return humanBytes(num(bytes), 1000 * 1000); } |
| 31 | function humanMinKBFromB(bytes){ return humanBytes(num(bytes), 1000); } |
no test coverage detected