resize

resize(x, size)

resize(x, size, defaultValue)

Try it yourself:

All functions