diff options
Diffstat (limited to 'node_modules/es-abstract/helpers/padTimeComponent.js')
-rw-r--r-- | node_modules/es-abstract/helpers/padTimeComponent.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/es-abstract/helpers/padTimeComponent.js b/node_modules/es-abstract/helpers/padTimeComponent.js new file mode 100644 index 000000000..cbd8d0612 --- /dev/null +++ b/node_modules/es-abstract/helpers/padTimeComponent.js @@ -0,0 +1,9 @@ +'use strict'; + +var callBound = require('../helpers/callBound'); + +var $strSlice = callBound('String.prototype.slice'); + +module.exports = function padTimeComponent(c, count) { + return $strSlice('00' + c, -(count || 2)); +}; |