source:
frontend/node_modules/es-abstract/helpers/padTimeComponent.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 211 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | |
| 3 | var callBound = require('call-bound'); |
| 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.
