Created
May 15, 2017 19:40
-
-
Save apaleslimghost/01d112594407770774add5a30f116944 to your computer and use it in GitHub Desktop.
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
module.exports = (a, b) => { | |
const ms = a[1] + b[1]; | |
const div = Math.floor(ms / 1e9); | |
const rem = ms % 1e9; | |
return [ | |
a[0] + b[0] + div, | |
rem | |
]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment