CoastalCommitsPastes/client/lib/byte-to-mb.ts

5 lines
108 B
TypeScript
Raw Permalink Normal View History

const byteToMB = (bytes: number) =>
Math.round((bytes / 1024 / 1024) * 100) / 100
export default byteToMB