mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
R=jacktfranklin@chromium.org No-Presubmit: True Bug: none Change-Id: I52dc24b12e350787085c5e3d131cface7ea87142 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3060705 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
'use strict';
|
|
|
|
var callBound = require('call-bind/callBound');
|
|
|
|
var $strSlice = callBound('String.prototype.slice');
|
|
|
|
module.exports = function padTimeComponent(c, count) {
|
|
return $strSlice('00' + c, -(count || 2));
|
|
};
|