source:
imaps-frontend/node_modules/es-abstract/helpers/padTimeComponent.js
Last change on this file was 79a0317, checked in by , 6 months ago | |
---|---|
|
|
File size: 211 bytes |
Rev | Line | |
---|---|---|
[d565449] | 1 | 'use strict'; |
2 | ||
[79a0317] | 3 | var callBound = require('call-bound'); |
[d565449] | 4 | |
5 | var $strSlice = callBound('String.prototype.slice'); | |
6 | ||
7 | module.exports = function padTimeComponent(c, count) { | |
8 | return $strSlice('00' + c, -(count || 2)); | |
9 | }; |
Note:
See TracBrowser
for help on using the repository browser.