daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export function twoDigits(value) {
  2.   if (value === undefined || !value) {
  3.     return '00';
  4.   }
  5.   if (value.toString().length <= 1) {
  6.     return '0' + value.toString();
  7.   }
  8.   return value.toString();
  9. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top