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

4 lines
108 B
TypeScript

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