Tankōbon / shared/file-name-template / padVolume
Function: padVolume()
padVolume(
volume,width):string
Defined in: shared/file-name-template.ts:47
volume padded with leading zeros to width digits when it is a plain whole number (7 → 07, 12 → 12 for a width of 2); any other volume (HS, 12.1, 1/2, 3-4) is returned as it is.
Parameters
volume
string
width
number
Returns
string