This file contains 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
function addUp(a, b, c) | |
{ | |
catArr = b.concat(c); | |
for(i = 0; i < catArr.length ; i++) | |
a[i] += catArr[i]; | |
return a; | |
} |
This file contains 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
/** | |
* This function takes milliseconds as input and converts it into "D H M S ms" format. | |
* | |
* @author Shubham Jain <shubham.jain.1@gmail.com> | |
* @license MIT License | |
*/ | |
function timeFormat( miliseconds ) | |
{ | |
formatArr = { | |
"d": 24 * 60 * 60 * 1000, |
NewerOlder