FillS the array with the given value until the array reaches the specified size
pad([1, 2, 3], 5, 0); // [1, 2, 3, 0, 0]
pad([1, 2, 3], -5, 0); // [0, 0, 1, 2, 3]
Optional
Generated using TypeDoc
FillS the array with the given value until the array reaches the specified size
Example
Example