Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

WebAssembly.Table.prototype.length

BaselineWidely available

The read-onlylength prototype property of theWebAssembly.Table object returns the length of the table, i.e., the number of elements in the table.

Examples

Using length

The following example creates a new WebAssembly Table instance with an initial size of2 and a maximum size of 10:

js
const table = new WebAssembly.Table({  element: "anyfunc",  initial: 2,  maximum: 10,});

Grow the table by 1 usingWebAssembly.grow():

js
console.log(table.length); // 2table.grow(1);console.log(table.length); // 3

Specifications

Specification
WebAssembly JavaScript Interface
# dom-table-length

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp