This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// below function via: http://goo.gl/B3ae8c | |
/** | |
* Return human-readable file size. | |
* @param {number} bytes - Pass bytes and get formatted string. | |
* @returns {string} - formatted string | |
* @example | |
* bytesToSize(1024*1024*5) === '5 GB' | |
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} | |
*/ | |
function bytesToSize(bytes) { |