Pads an array with a specified number to a given length.
The array
The desired length of the array
Optional
The number to pad with (default is 0)
const result = Chalkboard.stat.pad([1, 2, 3], 5, 0); // Returns [1, 2, 3, 0, 0] Copy
const result = Chalkboard.stat.pad([1, 2, 3], 5, 0); // Returns [1, 2, 3, 0, 0]
Pads an array with a specified number to a given length.