Pads a string at the end so that its length is a multiple of the specified block size.
The input string to pad
The block size or multiple to align to (default: 4)
The fill character or string to append (default: '=')
The padded string aligned to the multiple
padTo('abc', 4, '='); // 'abc='padTo('abcd', 4, '='); // 'abcd' Copy
padTo('abc', 4, '='); // 'abc='padTo('abcd', 4, '='); // 'abcd'
Pads a string at the end so that its length is a multiple of the specified block size.