A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/WebAssembly/Reference/JavaScript_interface/Table/length below:

WebAssembly.Table.prototype.length - WebAssembly | MDN

WebAssembly.Table.prototype.length

Baseline Widely available

The read-only length prototype property of the WebAssembly.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 of 2 and a maximum size of 10:

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

Grow the table by 1 using WebAssembly.grow():

console.log(table.length); // 2
table.grow(1);
console.log(table.length); // 3
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4