leadingzero
Add leading zeros to a number or string
Install
$ yarn add leadingzero$ npm install leadingzero
Usage (ES6 imports)
;// leadingzero(number, zeros, character);// => '007';// => '0010';// => '1234'
License
MIT © Benjamin Hollway