Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2017.
The grow() prototype method of the WebAssembly.Table object increases the size of the Table instance by a specified number of elements, filled with the provided value.
The number of elements you want to grow the table by.
value OptionalThe element to fill the newly-allocated space with.
The previous length of the table.
Thrown in one of the following cases:
Thrown if value is not a value of the element type of the table.
The following example creates a new WebAssembly Table instance with an initial size of 2 and a maximum size of 10:
Grow the table by 1 element using Table.grow():
The following example creates a new WebAssembly Table instance with an initial size of 0 and a maximum size of 4, filling it with an object:
Grow the table by 4 units and fill it with a value using WebAssembly.grow():
| WebAssembly JavaScript Interface # dom-table-grow |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 22, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.