mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-09 07:24:04 +08:00
2816 lines
207 KiB
HTML
2816 lines
207 KiB
HTML
<article id="wikiArticle">
|
||
<div><br/>
|
||
<span class="seoSummary">这篇文章按照字母顺序列出了MDN里边所有的JavaScript方法。</span><br/>
|
||
<p>Found 441 pages with the tag "Method":</p>
|
||
<h2 id="A">A</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs"><code>abs</code></a>: The <strong><code>Math.abs()</code></strong> function returns the absolute value of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos"><code>acos</code></a>: The <strong><code>Math.acos()</code></strong> function returns the arccosine (in radians) of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh"><code>acosh</code></a>: The <strong><code>Math.acosh()</code></strong> function returns the hyperbolic arc-cosine of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/add"><code>add</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.add()</code></strong> method adds a given value at a given position in the array and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/add"><code>add</code></a>: The <code><strong>add()</strong></code> method appends a new object to the end of a <code>WeakSet</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/add"><code>add</code></a>: The <code><strong>add()</strong></code> method appends a new element with a specified <code>value</code> to the end of a <code>Set</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all"><code>all</code></a>: The <strong><code>Promise.all()</code></strong> method returns a single <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" title="The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value."><code>Promise</code></a> that resolves when all of the promises passed as an iterable have resolved or when the iterable contains no promises. It rejects with the reason of the first promise that rejects.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/anchor"><code>anchor</code></a>: The <strong><code>anchor()</code></strong> method creates an <a href="/en-US/docs/Web/HTML/Element/a" title="The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."><code><a></code></a> HTML anchor element that is used as a hypertext target.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/and"><code>and</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.and()</code></strong> method computes a bitwise AND with a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply"><code>apply</code></a>: The <code><strong>apply()</strong></code> method calls a function with a given <code>this</code> value, and <code>arguments</code> provided as an array (or an <a href="/en-US/docs/Web/JavaScript/Guide/Indexed_collections#Working_with_array-like_objects">array-like object</a>).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/apply"><code>apply</code></a>: The <strong><code>handler.apply()</code></strong> method is a trap for a function call.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/apply"><code>apply</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.apply()</code></strong> method calls a target function with arguments as specified.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="这是一个实验性的 API,请尽量不要在生产环境中使用它。"><i class="icon-beaker"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN"><code>asIntN</code></a>: The <strong><code>BigInt.asIntN</code></strong> static method is used to wrap a BigInt between -2<sup>width-1</sup> and 2<sup>width-1</sup>-1.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="这是一个实验性的 API,请尽量不要在生产环境中使用它。"><i class="icon-beaker"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN"><code>asUintN</code></a>: The <strong><code>BigInt.asUintN</code></strong> static method is used to wrap a BigInt between 0 and 2<sup>width</sup>-1.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asin"><code>asin</code></a>: The <strong><code>Math.asin()</code></strong> function returns the arcsine (in radians) of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh"><code>asinh</code></a>: The <strong><code>Math.asinh()</code></strong> function returns the hyperbolic arcsine of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign"><code>assign</code></a>: The <strong><code>Object.assign()</code></strong> method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Enumerator/atEnd"><code>atEnd</code></a>: The <strong><code>Enumerator.atEnd</code> </strong><strong>method r</strong>eturns a Boolean value indicating if the enumerator is at the end of the collection.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan"><code>atan</code></a>: The <strong><code>Math.atan()</code></strong> function returns the arctangent (in radians) of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2"><code>atan2</code></a>: The <strong><code>Math.atan2()</code></strong> function returns the angle in the plane (in radians) between the positive x-axis and the ray from (0,0) to the point (x,y), for <code>Math.atan2(y,x)</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atanh"><code>atanh</code></a>: The <strong><code>Math.atanh()</code></strong> function returns the hyperbolic arctangent of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="B">B</h2>
|
||
<ul>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/big"><code>big</code></a>: The <strong><code>big()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/big" title="The obsolete HTML Big Element (<big>) renders the enclosed text at a font size one level larger than the surrounding text (medium becomes large, for example)."><code><big></code></a> HTML element that causes a string to be displayed in a big font.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind"><code>bind</code></a>: The <code><strong>bind()</strong></code> method creates a new function that, when called, has its <code>this</code> keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/blink"><code>blink</code></a>: The <strong><code>blink()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/blink" title="The HTML Blink Element (<blink>) is a non-standard element which causes the enclosed text to flash slowly."><code><blink></code></a> HTML element that causes a string to blink.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/bold"><code>bold</code></a>: The <strong><code>bold()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/b" title="The HTML Bring Attention To element (<b>) is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance."><code><b></code></a> HTML element that causes a string to be displayed as bold.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="C">C</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call"><code>call</code></a>: The <code><strong>call()</strong></code> method calls a function with a given <code>this</code> value and arguments provided individually.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch"><code>catch</code></a>: The <strong>catch()</strong> method returns a <code>Promise</code> and deals with rejected cases only. It behaves the same as calling <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then" title="The then() method returns a Promise. It takes up to two arguments: callback functions for the success and failure cases of the Promise."><code>Promise.prototype.then(undefined, onRejected)</code></a> (in fact, calling <code>obj.catch(onRejected)</code> internally calls <code>obj.then(undefined, onRejected)</code>). This means, that you have to provide <code>onRejected</code> function even if you want to fallback to <code>undefined</code> result value - for example <code>obj.catch(() => {})</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt"><code>cbrt</code></a>: The <strong><code>Math.cbrt()</code></strong> function returns the cube root of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil"><code>ceil</code></a>: The <strong><code>Math.ceil()</code></strong> function returns the smallest integer greater than or equal to a given number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt"><code>charAt</code></a>: The <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="The String global object is a constructor for strings or a sequence of characters."><code>String</code></a> object's <strong><code>charAt()</code></strong> method returns a new string consisting of the single UTF-16 code unit located at the specified offset into the string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt"><code>charCodeAt</code></a>: The <strong><code>charCodeAt()</code></strong> method returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/clear"><code>clear</code></a>: The <strong><code>clear()</code></strong> method removes all elements from a <code>Map</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/clear"><code>clear</code></a>: The <code><strong>clear()</strong></code> method used to remove all elements from a <code>WeakSet</code> object, but is no longer part of ECMAScript and its implementations.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/clear"><code>clear</code></a>: The <code><strong>clear()</strong></code> method used to remove all elements from a <code>WeakMap</code> object, but is no longer part of ECMAScript and its implementations.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear"><code>clear</code></a>: The <code><strong>clear()</strong></code> method removes all elements from a <code>Set</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32"><code>clz32</code></a>: The <strong><code>Math.clz32()</code></strong> function returns the number of leading zero bits in the 32-bit binary representation of a number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt"><code>codePointAt</code></a>: The <strong><code>codePointAt()</code></strong> method returns a non-negative integer that is the Unicode code point value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/compare"><code>compare</code></a>: The <strong><code>Intl.Collator.prototype.compare()</code></strong> method compares two strings according to the sort order of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator" title="The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison."><code>Collator</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/compareExchange"><code>compareExchange</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.compareExchange()</code></strong> method exchanges a given replacement value at a given position in the array, if a given expected value equals the old value. It returns the old value at that position whether it was equal to the expected value or not. This atomic operation guarantees that no other write happens until the modified value is written back.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile"><code>compile</code></a>: The <strong><code>WebAssembly.compile()</code></strong> function compiles a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module" title="All Module instances inherit from the Module() constructor's prototype object — this can be modified to affect all Module instances."><code>WebAssembly.Module</code></a> from WebAssembly binary code. This function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate" title="The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code. This function has two overloads:"><code>WebAssembly.instantiate()</code></a> function should be used).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/compile"><code>compile</code></a>: The deprecated <code><strong>compile</strong></code><strong><code>()</code></strong> method is used to (re-)compile a regular expression during execution of a script. It is basically the same as the <code>RegExp</code> constructor.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="这是一个实验性的 API,请尽量不要在生产环境中使用它。"><i class="icon-beaker"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming"><code>compileStreaming</code></a>: The <strong><code>WebAssembly.compileStreaming()</code></strong> function compiles a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module" title="All Module instances inherit from the Module() constructor's prototype object — this can be modified to affect all Module instances."><code>WebAssembly.Module</code></a> directly from a streamed underlying source. This function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming" title="The WebAssembly.instantiateStreaming() function compiles and instantiates a WebAssembly module directly from a streamed underlying source. This is the most efficient, optimized way to load wasm code."><code>WebAssembly.instantiateStreaming()</code></a> function should be used).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat"><code>concat</code></a>: The <strong><code>concat()</code></strong> method concatenates the string arguments to the calling string and returns a new string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat"><code>concat</code></a>: The <code><strong>concat()</strong></code> method is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct"><code>construct</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.construct()</code></strong> method acts like the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new"><code>new</code> operator</a>, but as a function. It is equivalent to calling <code>new target(...args)</code>. It gives also the added option to specify a different prototype.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/construct"><code>construct</code></a>: The <code><strong>handler.construct()</strong></code> method is a trap for the <a href="/en-US/docs/Web/JavaScript/Reference/Operators/new" title="The new operator lets developers create an instance of a user-defined object type or of one of the built-in object types that has a constructor function."><code>new</code></a> operator. In order for the new operation to be valid on the resulting Proxy object, the target used to initialize the proxy must itself have a <code>[[Construct]]</code> internal method (i.e. <code>new target</code> must be valid).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin"><code>copyWithin</code></a>: The <code><strong>copyWithin()</strong></code> method shallow copies part of an array to another location in the same array and returns it, without modifying its size.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin"><code>copyWithin</code></a>: The <code><strong>copyWithin()</strong></code> method copies the sequence of array elements within the array to the position starting at <code>target</code>. The copy is taken from the index positions of the second and third arguments <code>start</code> and <code>end</code>. The <code>end</code> argument is optional and defaults to the length of the array. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin" title="The copyWithin() method shallow copies part of an array to another location in the same array and returns it, without modifying its size."><code>Array.prototype.copyWithin</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cos"><code>cos</code></a>: The <strong><code>Math.cos()</code></strong> static function returns the <a class="external" href="https://en.wikipedia.org/wiki/cosine" rel="noopener" title="cosine">cosine</a> of the specified angle, which must be specified in <a class="external" href="https://en.wikipedia.org/wiki/radians" rel="noopener" title="radians">radians</a>. This value is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cosh"><code>cosh</code></a>: The <strong><code>Math.cosh()</code></strong> function returns the hyperbolic cosine of a number, that can be expressed using the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E" title="The Math.E property represents the base of natural logarithms, e, approximately 2.718.">constant e</a>:
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create"><code>create</code></a>: The <code><strong>Object.create()</strong></code> method creates a new object, using an existing object as the prototype of the newly created object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections"><code>customSections</code></a>: The <strong><code>WebAssembly.customSections()</code></strong> function returns a copy of the contents of all custom sections in the given module with the given string name.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="D">D</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties"><code>defineProperties</code></a>: The <code><strong>Object.defineProperties()</strong></code> method defines new or modifies existing properties directly on an object, returning the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/defineProperty"><code>defineProperty</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.defineProperty()</code></strong> method is like <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty" title="The static method Object.defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object."><code>Object.defineProperty()</code></a> but returns a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" title="The Boolean object is an object wrapper for a boolean value."><code>Boolean</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty"><code>defineProperty</code></a>: The static method <code><strong>Object.defineProperty()</strong></code> defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/defineProperty"><code>defineProperty</code></a>: The <strong><code>handler.defineProperty()</code></strong> method is a trap for <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty" title="The static method Object.defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object."><code>Object.defineProperty()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/delete"><code>delete</code></a>: The <code><strong>delete()</strong></code> method removes the specified element from a <code>WeakSet</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete"><code>delete</code></a>: The <strong><code>delete()</code></strong> method removes the specified element from a <code>Map</code> object by key.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/delete"><code>delete</code></a>: The <code><strong>delete()</strong></code> method removes the specified element from a <code>WeakMap</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete"><code>delete</code></a>: The <code><strong>delete()</strong></code> method removes the specified element from a <code>Set</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/deleteProperty"><code>deleteProperty</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.deleteProperty()</code></strong> method allows to delete properties. It is like the <a href="/en-US/docs/Web/JavaScript/Reference/Operators/delete"><code>delete</code> operator</a> as a function.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/deleteProperty"><code>deleteProperty</code></a>: The <strong><code>handler.deleteProperty()</code></strong> method is a trap for the <a href="/en-US/docs/Web/JavaScript/Reference/Operators/delete" title="The JavaScript delete operator removes a property from an object; if no more references to the same property are held, it is eventually released automatically."><code>delete</code></a> operator.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/VBArray/dimensions"><code>dimensions</code></a>: The <strong><code>VBArray.dimensions</code> method </strong>returns the number of dimensions in a VBArray.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="E">E</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith"><code>endsWith</code></a>: The <strong><code>endsWith()</code></strong> method determines whether a string ends with the characters of a specified string, returning <code>true</code> or <code>false</code> as appropriate.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries"><code>entries</code></a>: The <code><strong>entries()</strong></code> method returns a new <code><strong>Array Iterator</strong></code> object that contains the key/value pairs for each index in the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/entries"><code>entries</code></a>: The <strong><code>entries()</code></strong> method returns a new <code>Array Iterator</code> object that contains the key/value pairs for each index in the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries"><code>entries</code></a>: The <strong><code>entries()</code></strong> method returns a new <strong><a href="/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators">Iterator</a></strong> object that contains the <code>[key, value]</code> pairs for each element in the <code>Map</code> object in insertion order.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries"><code>entries</code></a>: The <code><strong>entries()</strong></code> method returns a new <code>Iterator</code> object that contains<strong> an array of <code>[value, value]</code></strong> for each element in the <code>Set</code> object, in insertion order. For <code>Set</code> objects there is no <code>key</code> like in <code>Map</code> objects. However, to keep the API similar to the <code>Map</code> object, each <em>entry</em> has the same value for its <em>key</em> and <em>value</em> here, so that an array <code>[value, value]</code> is returned.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries"><code>entries</code></a>: The <code><strong>Object.entries()</strong></code> method returns an array of a given object's own enumerable string-keyed property <code>[key, value]</code> pairs, in the same order as that provided by a <a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in" title="The for...in statement iterates over all non-Symbol, enumerable properties of an object."><code>for...in</code></a> loop (the difference being that a for-in loop enumerates properties in the prototype chain as well). The order of the array returned by <strong>Object.entries()</strong> does not depend on how an object is defined. If there is a need for certain ordering then the array should be sorted first like <code>Object.entries(obj).sort((a, b) => b[0].localeCompare(a[0]));</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/enumerate"><code>enumerate</code></a>: The <strong><code>handler.enumerate()</code></strong> method used to be a trap for <a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in" title="The for...in statement iterates over all non-Symbol, enumerable properties of an object."><code>for...in</code></a> statements, but has been removed from the ECMAScript standard in ES2016 and is deprecated in browsers.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/enumerate"><code>enumerate</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.enumerate()</code></strong> method used to return an iterator with the enumerable own and inherited properties of the target object, but has been removed in ECMAScript 2016 and is deprecated in browsers.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/eval"><code>eval</code></a>: The <code><strong>Object.eval()</strong></code> method used to evaluate a string of JavaScript code in the context of an object, however, this method has been removed.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every"><code>every</code></a>: The <code><strong>every()</strong></code> method tests whether all elements in the array pass the test implemented by the provided function.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every"><code>every</code></a>: The <code><strong>every()</strong></code> method tests whether all elements in the typed array pass the test implemented by the provided function. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every" title="The every() method tests whether all elements in the array pass the test implemented by the provided function."><code>Array.prototype.every()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/exchange"><code>exchange</code></a>: The static <strong><code>Atomics.exchange()</code></strong> method stores a given value at a given position in the array and returns the old value at that position. This atomic operation guarantees that no other write happens between the read of the old value and the write of the new value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec"><code>exec</code></a>: The <strong><code>exec()</code></strong> method executes a search for a match in a specified string. Returns a result array, or <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/null" title="The value null represents the intentional absence of any object value. It is one of JavaScript's primitive values."><code>null</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/exp"><code>exp</code></a>: The <strong><code>Math.exp()</code></strong> function returns <code>e<sup>x</sup></code>, where <code>x</code> is the argument, and <code>e</code> is <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E" title="The Math.E property represents the base of natural logarithms, e, approximately 2.718.">Euler's number (also known as Napier's constant)</a>, the base of the natural logarithms.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/expm1"><code>expm1</code></a>: The <strong><code>Math.expm1()</code></strong> function returns <code>e<sup>x</sup> - 1</code>, where <code>x</code> is the argument, and <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E" title="The Math.E property represents the base of natural logarithms, e, approximately 2.718.">e</a> the base of the natural logarithms.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports"><code>exports</code></a>: The <strong><code>WebAssembly.exports()</code></strong> function returns an array containing descriptions of all the declared exports of the given <code>Module</code>.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="F">F</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill"><code>fill</code></a>: The <code><strong>fill()</strong></code> method fills all the elements of a typed array from a start index to an end index with a static value. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill" title="The fill() method fills (modifies) all the elements of an array from a start index (default zero) to an end index (default array length) with a static value. It returns the modified array."><code>Array.prototype.fill()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill"><code>fill</code></a>: The <code><strong>fill()</strong></code> method fills (modifies) all the elements of an array from a start index (default zero) to an end index (default array length) with a static value. It returns the modified array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter"><code>filter</code></a>: The <code><strong>filter()</strong></code> method creates a new array with all elements that pass the test implemented by the provided function.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter"><code>filter</code></a>: The <code><strong>filter()</strong></code> method creates a new typed array with all elements that pass the test implemented by the provided function. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter" title="The filter() method creates a new array with all elements that pass the test implemented by the provided function."><code>Array.prototype.filter()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally"><code>finally</code></a>: The <code><strong>finally()</strong></code> method returns a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" title="The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value."><code>Promise</code></a>. When the promise is settled, i.e either fulfilled or rejected, the specified callback function is executed. This provides a way for code to be run whether the promise was fulfilled successfully or rejected once the <code>Promise</code> has been dealt with .
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find"><code>find</code></a>: The <code><strong>find()</strong></code> method returns a <strong>value</strong> in the typed array, if an element satisfies the provided testing function. Otherwise <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined" title="The global undefined property represents the primitive value undefined. It is one of JavaScript's primitive types."><code>undefined</code></a> is returned. <em>TypedArray</em> is one of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find"><code>find</code></a>: The <code><strong>find()</strong></code> method returns the <strong>value</strong> of the <strong>first element</strong> in the array that satisfies the provided testing function. Otherwise <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined" title="The global undefined property represents the primitive value undefined. It is one of JavaScript's primitive types."><code>undefined</code></a> is returned.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex"><code>findIndex</code></a>: The <code><strong>findIndex()</strong></code> method returns an <strong>index</strong> in the typed array, if an element in the typed array satisfies the provided testing function. Otherwise -1 is returned.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex"><code>findIndex</code></a>: The <code><strong>findIndex()</strong></code> method returns the <strong>index</strong> of the first element in the array <strong>that satisfies the provided testing function</strong>. Otherwise, it returns -1, indicating no element passed the test.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fixed"><code>fixed</code></a>: The <strong><code>fixed()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/tt" title="The obsolete HTML Teletype Text element (<tt>) creates inline text which is presented using the user agent's default monospace font face."><code><tt></code></a> HTML element that causes a string to be displayed in fixed-pitch font.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat"><code>flat</code></a>: The <code><strong>flat()</strong></code> method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="这是一个实验性的 API,请尽量不要在生产环境中使用它。"><i class="icon-beaker"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap"><code>flatMap</code></a>: The <code><strong>flatMap()</strong></code> method first maps each element using a mapping function, then flattens the result into a new array. It is identical to a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map">map</a> followed by a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat">flat</a> of depth 1, but <code>flatMap</code> is often quite useful, as merging both into one method is slightly more efficient.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor"><code>floor</code></a>: The <strong><code>Math.floor()</code></strong> function returns the largest integer less than or equal to a given number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fontcolor"><code>fontcolor</code></a>: The <strong><code>fontcolor()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/font" title="The HTML Font Element (<font>) defines the font size, color and face for its content."><code><font></code></a> HTML element that causes a string to be displayed in the specified font color.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fontsize"><code>fontsize</code></a>: The <strong><code>fontsize()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/font" title="The HTML Font Element (<font>) defines the font size, color and face for its content."><code><font></code></a> HTML element that causes a string to be displayed in the specified font size.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for"><code>for</code></a>: The <code><strong>Symbol.for(key)</strong></code> method searches for existing symbols in a runtime-wide symbol registry with the given key and returns it if found. Otherwise a new symbol gets created in the global symbol registry with this key.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/forEach"><code>forEach</code></a>: The <code><strong>forEach()</strong></code> method executes a provided function once for each value in the <code>Set</code> object, in insertion order.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach"><code>forEach</code></a>: The <code><strong>forEach()</strong></code> method executes a provided function once for each array element.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach"><code>forEach</code></a>: The <code><strong>forEach()</strong></code> method executes a provided function once per array element. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach" title="The forEach() method executes a provided function once for each array element."><code>Array.prototype.forEach()</code></a>. <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach"><code>forEach</code></a>: The <code><strong>forEach()</strong></code> method executes a provided function once per each key/value pair in the <code>Map</code> object, in insertion order.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/format"><code>format</code></a>: The <strong><code>Intl.RelativeTimeFormat.prototype.format()</code></strong> method formats a <code>value</code> and <code>unit</code> according to the locale and formatting options of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat" title="The Intl.RelativeTimeFormat object is a constructor for objects that enable language-sensitive relative time formatting."><code>RelativeTimeFormat</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/format"><code>format</code></a>: The <strong><code>Intl.NumberFormat.prototype.format()</code></strong> method formats a number according to the locale and formatting options of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat" title="The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting."><code>NumberFormat</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/format"><code>format</code></a>: The <strong><code>Intl.DateTimeFormat.prototype.format()</code></strong> method formats a date according to the locale and formatting options of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat" title="The Intl.DateTimeFormat object is a constructor for objects that enable language-sensitive date and time formatting."><code>Intl.DateTimeFormat</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/formatToParts"><code>formatToParts</code></a>: The <code>Intl.RelativeTimeFormat.prototype.formatToParts()</code> method returns an <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" title="The JavaScript Array object is a global object that is used in the construction of arrays; which are high-level, list-like objects."><code>Array</code></a> of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/formatToParts"><code>formatToParts</code></a>: The <strong><code>Intl.Numberformat.prototype.formatToParts()</code></strong> method allows locale-aware formatting of strings produced by <code>NumberTimeFormat</code> formatters.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts"><code>formatToParts</code></a>: The <strong><code>Intl.DateTimeFormat.prototype.formatToParts()</code></strong> method allows locale-aware formatting of strings produced by <code>DateTimeFormat</code> formatters.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze"><code>freeze</code></a>: The <code><strong>Object.freeze()</strong></code> method <strong>freezes</strong> an object. A frozen object can no longer be changed; freezing an object prevents new properties from being added to it, existing properties from being removed, prevents changing the enumerability, configurability, or writability of existing properties, and prevents the values of existing properties from being changed. In addition, freezing an object also prevents its prototype from being changed. <code>freeze()</code> returns the same object that was passed in.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from"><code>from</code></a>: The <code><strong><var>TypedArray</var>.from()</strong></code> method creates a new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array</a> from an array-like or iterable object. This method is nearly the same as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from" title="The Array.from() method creates a new, shallow-copied Array instance from an array-like or iterable object."><code>Array.from()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from"><code>from</code></a>: The <code><strong>Array.from()</strong></code> method creates a new, shallow-copied <code>Array</code> instance from an array-like or iterable object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode"><code>fromCharCode</code></a>: The static <strong><code>String.fromCharCode()</code></strong> method returns a string created from the specified sequence of UTF-16 code units.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint"><code>fromCodePoint</code></a>: The static <strong><code>String.fromCodePoint()</code></strong> method returns a string created by using the specified sequence of code points.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries"><code>fromEntries</code></a>: The <code><strong>Object.fromEntries()</strong></code> method transforms a list of key-value pairs into an object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround"><code>fround</code></a>: The <strong><code>Math.fround()</code></strong> function returns the nearest <a class="external" href="https://en.wikipedia.org/wiki/Single-precision_floating-point_format" rel="noopener" title="link to the wikipedia page on single-precision floating-point format">32-bit single precision</a> float representation of a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" title="The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor. A primitive type object number is created using the Number() function."><code>Number</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="G">G</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get"><code>get</code></a>: The <code><strong>get()</strong></code> method returns a specified element from a <code>Map</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/get"><code>get</code></a>: The <strong><code>handler.get()</code></strong> method is a trap for getting a property value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get"><code>get</code></a>: The <code><strong>get()</strong></code> prototype method of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table" title="The WebAssembly.Table() constructor creates a new Table object of the given size and element type."><code>WebAssembly.Table()</code></a> object retrieves a function reference stored at a given index.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/get"><code>get</code></a>: The <code><strong>get()</strong></code> method returns a specified element from a <code>WeakMap</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/get"><code>get</code></a>: The static <strong><code>Reflect.get()</code></strong> method works like getting a property from an object (<code>target[propertyKey]</code>) as a function.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/@@species"><code>get Array[@@species]</code></a>: The <code><strong>Array[@@species]</strong></code> accessor property returns the <code>Array</code> constructor.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales"><code>getCanonicalLocales</code></a>: The <strong><code>Intl.getCanonicalLocales()</code></strong> method returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate"><code>getDate</code></a>: The <strong><code>getDate()</code></strong> method returns the day of the month for the specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay"><code>getDay</code></a>: The <strong><code>getDay()</code></strong> method returns the day of the week for the specified date according to local time, where 0 represents Sunday. For the day of the month see <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate">getDate()</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat32"><code>getFloat32</code></a>: The <strong><code>getFloat32()</code></strong> method gets a signed 32-bit float (float) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat64"><code>getFloat64</code></a>: The <strong><code>getFloat64()</code></strong> method gets a signed 64-bit float (double) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear"><code>getFullYear</code></a>: The <strong><code>getFullYear()</code></strong> method returns the year of the specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getHours"><code>getHours</code></a>: The <strong><code>getHours()</code></strong> method returns the hour for the specified date, according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt16"><code>getInt16</code></a>: The <strong><code>getInt16()</code></strong> method gets a signed 16-bit integer (short) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32"><code>getInt32</code></a>: The <strong><code>getInt32()</code></strong> method gets a signed 32-bit integer (long) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt8"><code>getInt8</code></a>: The <strong><code>getInt8()</code></strong> method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/VBArray/getItem"><code>getItem</code></a>: The <strong><code>VBArray.getItem</code> </strong><strong>method</strong> returns the item at the specified location.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds"><code>getMilliseconds</code></a>: The <strong><code>getMilliseconds()</code></strong> method returns the milliseconds in the specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes"><code>getMinutes</code></a>: The <strong><code>getMinutes()</code></strong> method returns the minutes in the specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth"><code>getMonth</code></a>: The <strong><code>getMonth()</code></strong> method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getNotifier"><code>getNotifier</code></a>: The <strong><code>Object.getNotifer()</code></strong> method was used to create an object that allows to synthetically trigger a change, but has been deprecated and removed in browsers.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor"><code>getOwnPropertyDescriptor</code></a>: The <code><strong>Object.getOwnPropertyDescriptor()</strong></code> method returns a property descriptor for an <dfn>own property</dfn> (that is, one directly present on an object and not in the object's prototype chain) of a given object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/getOwnPropertyDescriptor"><code>getOwnPropertyDescriptor</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.getOwnPropertyDescriptor()</code></strong> method is similar to <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor" title="The Object.getOwnPropertyDescriptor() method returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object."><code>Object.getOwnPropertyDescriptor()</code></a>. It returns a property descriptor of the given property if it exists on the object, <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined" title="The global undefined property represents the primitive value undefined. It is one of JavaScript's primitive types."><code>undefined</code></a> otherwise.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/getOwnPropertyDescriptor"><code>getOwnPropertyDescriptor</code></a>: The <strong><code>handler.getOwnPropertyDescriptor()</code></strong> method is a trap for <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor" title="The Object.getOwnPropertyDescriptor() method returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object."><code>Object.getOwnPropertyDescriptor()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors"><code>getOwnPropertyDescriptors</code></a>: The <code><strong>Object.getOwnPropertyDescriptors()</strong></code> method returns all own property descriptors of a given object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames"><code>getOwnPropertyNames</code></a>: The <strong><code>Object.getOwnPropertyNames()</code></strong> method returns an array of all properties (including non-enumerable properties except for those which use Symbol) found directly in a given object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols"><code>getOwnPropertySymbols</code></a>: The <code><strong>Object.getOwnPropertySymbols()</strong></code> method returns an array of all symbol properties found directly upon a given object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/getPrototypeOf"><code>getPrototypeOf</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.getPrototypeOf()</code></strong> method is almost the same method as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf" title="The Object.getPrototypeOf() method returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified object."><code>Object.getPrototypeOf()</code></a>. It returns the prototype (i.e. the value of the internal <code>[[Prototype]]</code> property) of the specified object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/getPrototypeOf"><code>getPrototypeOf</code></a>: The <strong><code>handler.getPrototypeOf()</code></strong> method is a trap for the <code>[[GetPrototypeOf]]</code> internal method.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf"><code>getPrototypeOf</code></a>: The <code><strong>Object.getPrototypeOf()</strong></code> method returns the prototype (i.e. the value of the internal <code>[[Prototype]]</code> property) of the specified object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getSeconds"><code>getSeconds</code></a>: The <strong><code>getSeconds()</code></strong> method returns the seconds in the specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime"><code>getTime</code></a>: The <strong><code>getTime()</code></strong> method returns the number of milliseconds* since the <a class="external" href="https://en.wikipedia.org/wiki/Unix_time" rel="noopener">Unix Epoch</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset"><code>getTimezoneOffset</code></a>: The <strong><code>getTimezoneOffset()</code></strong> method returns the time zone difference, in minutes, from current locale (host system settings) to UTC.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDate"><code>getUTCDate</code></a>: The <strong><code>getUTCDate()</code></strong> method returns the day (date) of the month in the specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDay"><code>getUTCDay</code></a>: The <strong><code>getUTCDay()</code></strong> method returns the day of the week in the specified date according to universal time, where 0 represents Sunday.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCFullYear"><code>getUTCFullYear</code></a>: The <strong><code>getUTCFullYear()</code></strong> method returns the year in the specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCHours"><code>getUTCHours</code></a>: The <strong><code>getUTCHours()</code></strong> method returns the hours in the specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds"><code>getUTCMilliseconds</code></a>: The <strong><code>getUTCMilliseconds()</code></strong> method returns the milliseconds in the specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMinutes"><code>getUTCMinutes</code></a>: The <strong><code>getUTCMinutes()</code></strong> method returns the minutes in the specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth"><code>getUTCMonth</code></a>: The <strong><code>getUTCMonth()</code></strong> returns the month of the specified date according to universal time, as a zero-based value (where zero indicates the first month of the year).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCSeconds"><code>getUTCSeconds</code></a>: The <strong><code>getUTCSeconds()</code></strong> method returns the seconds in the specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint16"><code>getUint16</code></a>: The <strong><code>getUint16()</code></strong> method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32"><code>getUint32</code></a>: The <strong><code>getUint32()</code></strong> method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint8"><code>getUint8</code></a>: The <strong><code>getUint8()</code></strong> method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Date.getVarDate"><code>getVarDate</code></a>: The <strong><code>getVarDate</code> method</strong> returns a <code>VT_DATE</code> value from a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getYear"><code>getYear</code></a>: The <strong><code>getYear()</code></strong> method returns the year in the specified date according to local time. Because <code>getYear()</code> does not return full years ("year 2000 problem"), it is no longer used and has been replaced by the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear" title="The getFullYear() method returns the year of the specified date according to local time."><code>getFullYear()</code></a> method.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow"><code>grow</code></a>: The <strong><code>grow()</code></strong> protoype method of the <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory">Memory</a></code> object increases the size of the memory instance by a specified number of WebAssembly pages.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow"><code>grow</code></a>: The <code><strong>grow()</strong></code> prototype method of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table" title="The WebAssembly.Table() constructor creates a new Table object of the given size and element type."><code>WebAssembly.Table</code></a> object increases the size of the Table instance by a specified number of elements.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="H">H</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/has"><code>has</code></a>: The <code><strong>has()</strong></code> method returns a boolean indicating whether an element with the specified key exists or not.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/has"><code>has</code></a>: The <strong><code>handler.has()</code></strong> method is a trap for the <a href="/en-US/docs/Web/JavaScript/Reference/Operators/in" title="The in operator returns true if the specified property is in the specified object or its prototype chain."><code>in</code></a> operator.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/has"><code>has</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.has()</code></strong> method works like the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in"><code>in</code> operator</a> as a function.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/has"><code>has</code></a>: The <code><strong>has()</strong></code> method returns a boolean indicating whether an element with the specified value exists in a <code>Set</code> object or not.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/has"><code>has</code></a>: The <code><strong>has()</strong></code> method returns a boolean indicating whether an element with the specified key exists in the <code>WeakMap</code> object or not.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/has"><code>has</code></a>: The <code><strong>has()</strong></code> method returns a boolean indicating whether an object exists in a <code>WeakSet</code> or not.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty"><code>hasOwnProperty</code></a>: The <strong><code>hasOwnProperty()</code></strong> method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot"><code>hypot</code></a>: The <strong><code>Math.hypot()</code></strong> function returns the square root of the sum of squares of its arguments, that is:
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="I">I</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Guide/Indexed_collections"><code>Indexed collections</code></a>: This chapter introduces collections of data which are ordered by an index value. This includes arrays and array-like constructs such as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" title="The JavaScript Array object is a global object that is used in the construction of arrays; which are high-level, list-like objects."><code>Array</code></a> objects and <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray" title="A TypedArray object describes an array-like view of an underlying binary data buffer. There is no global property named TypedArray, nor is there a directly visible TypedArray constructor. Instead, there are a number of different global properties, whose values are typed array constructors for specific element types, listed below. On the following pages you will find common properties and methods that can be used with any typed array containing elements of any type."><code>TypedArray</code></a> objects.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports"><code>imports</code></a>: The <strong><code>WebAssembly.imports()</code></strong> function returns an array containing descriptions of all the declared imports of the given <code>Module</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul"><code>imul</code></a>: The <strong><code>Math.imul()</code></strong> function returns the result of the C-like 32-bit multiplication of the two parameters.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes"><code>includes</code></a>: The <strong><code>includes()</code></strong> method determines whether one string may be found within another string, returning <code>true</code> or <code>false</code> as appropriate.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes"><code>includes</code></a>: The <code><strong>includes()</strong></code> method determines whether a typed array includes a certain element, returning <code>true</code> or <code>false</code> as appropriate. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes" title="The includes() method determines whether an array includes a certain value among its entries, returning true or false as appropriate."><code>Array.prototype.includes()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes"><code>includes</code></a>: The <code><strong>includes()</strong></code> method determines whether an array includes a certain value among its entries, returning <code>true</code> or <code>false</code> as appropriate.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf"><code>indexOf</code></a>: The <code><strong>indexOf()</strong></code> method returns the first index at which a given element can be found in the typed array, or -1 if it is not present. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf" title="The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present."><code>Array.prototype.indexOf()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf"><code>indexOf</code></a>: The <strong><code>indexOf()</code></strong> method returns the index within the calling <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="The String global object is a constructor for strings or a sequence of characters."><code>String</code></a> object of the first occurrence of the specified value, starting the search at <code>fromIndex</code>. Returns -1 if the value is not found.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf"><code>indexOf</code></a>: The <code><strong>indexOf()</strong></code> method returns the first index at which a given element can be found in the array, or -1 if it is not present.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate"><code>instantiate</code></a>: The <strong><code>WebAssembly.instantiate()</code></strong> function allows you to compile and instantiate WebAssembly code. This function has two overloads:
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming"><code>instantiateStreaming</code></a>: The <strong><code>WebAssembly.instantiateStreaming()</code></strong> function compiles and instantiates a WebAssembly module directly from a streamed underlying source. This is the most efficient, optimized way to load wasm code.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is"><code>is</code></a>: The <code><strong>Object.is()</strong></code> method determines whether two values are <a href="/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness">the same value</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray"><code>isArray</code></a>: The <code><strong>Array.isArray()</strong></code> method determines whether the passed value is an <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" title="The JavaScript Array object is a global object that is used in the construction of arrays; which are high-level, list-like objects."><code>Array</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible"><code>isExtensible</code></a>: The <strong><code>Object.isExtensible()</code></strong> method determines if an object is extensible (whether it can have new properties added to it).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/isExtensible"><code>isExtensible</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.isExtensible()</code></strong> method determines if an object is extensible (whether it can have new properties added to it). It is similar to <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible" title="The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it)."><code>Object.isExtensible()</code></a>, but with some <a href="#Difference_to_Object.isExtensible()">differences</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/isExtensible"><code>isExtensible</code></a>: The <strong><code>handler.isExtensible()</code></strong> method is a trap for <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible" title="The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it)."><code>Object.isExtensible()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite"><code>isFinite</code></a>: The <strong><code>Number.isFinite()</code></strong> method determines whether the passed value is a finite number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen"><code>isFrozen</code></a>: The <code><strong>Object.isFrozen()</strong></code> determines if an object is <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze" title="The Object.freeze() method freezes an object. A frozen object can no longer be changed; freezing an object prevents new properties from being added to it, existing properties from being removed, prevents changing the enumerability, configurability, or writability of existing properties, and prevents the values of existing properties from being changed. In addition, freezing an object also prevents its prototype from being changed. freeze() returns the same object that was passed in.">frozen</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/isGenerator"><code>isGenerator</code></a>: The non-standard <code><strong>isGenerator()</strong></code> method used to determine whether or not a function is a <a href="/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generators.3A_a_better_way_to_build_Iterators">generator</a>. It has been removed from Firefox starting with version 58.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger"><code>isInteger</code></a>: The <strong><code>Number.isInteger()</code></strong> method determines whether the passed value is an integer.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/isLockFree"><code>isLockFree</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.isLockFree()</code></strong> method is used to determine whether to use locks or atomic operations. It returns <code>true</code>, if the given size is one of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/BYTES_PER_ELEMENT">BYTES_PER_ELEMENT</a> property of integer TypedArray types.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN"><code>isNaN</code></a>: The <code><strong>isNaN()</strong></code> function determines whether a value is <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN" title="The global NaN property is a value representing Not-A-Number."><code>NaN</code></a> or not. Note: coercion inside the <code>isNaN</code> function has <a href="#Description">interesting</a> rules; you may alternatively want to use <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN" title="The Number.isNaN() method determines whether the passed value is NaN and its type is Number. It is a more robust version of the original, global isNaN()."><code>Number.isNaN()</code></a>, as defined in ECMAScript 2015.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN"><code>isNaN</code></a>: The <strong><code>Number.isNaN()</code></strong> method determines whether the passed value is <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN" title="The global NaN property is a value representing Not-A-Number."><code>NaN</code></a> and its type is <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" title="The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor. A primitive type object number is created using the Number() function."><code>Number</code></a>. It is a more robust version of the original, global <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN" title="The isNaN() function determines whether a value is NaN or not. Note: coercion inside the isNaN function has interesting rules; you may alternatively want to use Number.isNaN(), as defined in ECMAScript 2015."><code>isNaN()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf"><code>isPrototypeOf</code></a>: The <code><strong>isPrototypeOf()</strong></code> method checks if an object exists in another object's prototype chain.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger"><code>isSafeInteger</code></a>: The <strong><code>Number.isSafeInteger()</code></strong> method determines whether the provided value is a number that is a <dfn>safe integer</dfn>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed"><code>isSealed</code></a>: The <code><strong>Object.isSealed()</strong></code> method determines if an object is sealed.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView"><code>isView</code></a>: The <code><strong>ArrayBuffer.isView()</strong></code> method returns <code>true</code> if <code>arg</code> is one of the <code>ArrayBuffer</code> views, such as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray">typed array objects</a> or a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>; <code>false</code> otherwise.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/italics"><code>italics</code></a>: The <strong><code>italics()</code></strong> method creates an <a href="/en-US/docs/Web/HTML/Element/i" title="The HTML <i> element represents a range of text that is set off from the normal text for some reason. Some examples include technical terms, foreign language phrases, or fictional character thoughts. It is typically displayed in italic type."><code><i></code></a> HTML element that causes a string to be italic.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Enumerator/item"><code>item</code></a>: The <strong><code>Enumerator.item</code> method</strong> returns the current item in the collection.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="J">J</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join"><code>join</code></a>: The <code><strong>join()</strong></code> method creates and returns a new string by concatenating all of the elements in an array (or an <a href="/en-US/docs/Web/JavaScript/Guide/Indexed_collections#Working_with_array-like_objects">array-like object</a>), separated by commas or a specified separator string. If the array has only one item, then that item will be returned without using the separator.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join"><code>join</code></a>: The <code><strong>join()</strong></code> method joins all elements of an array into a string. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join" title="The join() method creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas or a specified separator string. If the array has only one item, then that item will be returned without using the separator."><code>Array.prototype.join()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="K">K</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/keyFor"><code>keyFor</code></a>: The <code><strong>Symbol.keyFor(sym)</strong></code> method retrieves a shared symbol key from the global symbol registry for the given symbol.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/keys"><code>keys</code></a>: The <code><strong>keys()</strong></code> method returns a new <code><strong>Array Iterator</strong></code> object that contains the keys for each index in the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/keys"><code>keys</code></a>: The <code><strong>keys()</strong></code> method returns a new <strong><code><a href="/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators">Iterator</a></code></strong> object that contains the keys for each element in the <code>Map</code> object in insertion order.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys"><code>keys</code></a>: The <code><strong>Object.keys()</strong></code> method returns an array of a given object's own property <strong><code>names</code></strong>, in the same order as we get with a normal loop.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/keys"><code>keys</code></a>: The <strong><code>keys()</code></strong> method returns a new <code>Array Iterator</code> object that contains the keys for each index in the array.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="L">L</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf"><code>lastIndexOf</code></a>: The <code><strong>lastIndexOf()</strong></code> method returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at <code>fromIndex</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf"><code>lastIndexOf</code></a>: The <code><strong>lastIndexOf()</strong></code> method returns the last index at which a given element can be found in the typed array, or -1 if it is not present. The typed array is searched backwards, starting at <code>fromIndex</code>. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf" title="The lastIndexOf() method returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex."><code>Array.prototype.lastIndexOf()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf"><code>lastIndexOf</code></a>: The <strong><code>lastIndexOf()</code></strong> method returns the index within the calling <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="The String global object is a constructor for strings or a sequence of characters."><code>String</code></a> object of the last occurrence of the specified value, searching backwards from <code>fromIndex</code>. Returns -1 if the value is not found.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/VBArray/lbound"><code>lbound</code></a>: The <strong>VBArray.lbound </strong>method returns the lowest index value used in the specified dimension of a VBArray.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/link"><code>link</code></a>: The <strong><code>link()</code></strong> method creates a string representing the code for an <a href="/en-US/docs/Web/HTML/Element/a" title="The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."><code><a></code></a> HTML element to be used as a hypertext link to another URL.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/load"><code>load</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.load()</code></strong> method returns a value at a given position in the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare"><code>localeCompare</code></a>: The <strong><code>localeCompare()</code></strong> method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log"><code>log</code></a>: The <strong><code>Math.log()</code></strong> function returns the natural logarithm (base <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E" title="The Math.E property represents the base of natural logarithms, e, approximately 2.718."><code>e</code></a>) of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log10"><code>log10</code></a>: The <strong><code>Math.log10()</code></strong> function returns the base 10 logarithm of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p"><code>log1p</code></a>: The <strong><code>Math.log1p()</code></strong> function returns the natural logarithm (base <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E" title="The Math.E property represents the base of natural logarithms, e, approximately 2.718."><code>e</code></a>) of 1 + a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log2"><code>log2</code></a>: The <strong><code>Math.log2()</code></strong> function returns the base 2 logarithm of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="M">M</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map"><code>map</code></a>: The <code><strong>map()</strong></code> method creates a new array with the results of calling a provided function on every element in the calling array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map"><code>map</code></a>: The <code><strong>map()</strong></code> method creates a new typed array with the results of calling a provided function on every element in this typed array. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map" title="The map() method creates a new array with the results of calling a provided function on every element in the calling array."><code>Array.prototype.map()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match"><code>match</code></a>: The <strong><code>match()</code></strong> method retrieves the result of matching a <em>string</em> against a <em>regular expression</em>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll"><code>matchAll</code></a>: The <strong><code>matchAll()</code></strong> method returns an iterator of all results matching a <em>string</em> against a <em>regular expression</em>, including capturing groups.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max"><code>max</code></a>: The <strong><code>Math.max()</code></strong> function returns the largest of zero or more numbers.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min"><code>min</code></a>: The static function <code><strong>Math.min()</strong></code> returns the lowest-valued number passed into it, or <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN" title="The global NaN property is a value representing Not-A-Number."><code>NaN</code></a> if any parameter isn't a number and can't be converted into one.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/move"><code>move</code></a>: The <strong><code>move()</code></strong> method used to copy the sequence of array elements within the array to the position starting at <code>target</code>. However, this non-standard method has been replaced with the standard <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin" title="The copyWithin() method copies the sequence of array elements within the array to the position starting at target. The copy is taken from the index positions of the second and third arguments start and end. The end argument is optional and defaults to the length of the array. This method has the same algorithm as Array.prototype.copyWithin. TypedArray is one of the typed array types here."><code>TypedArray.prototype.copyWithin()</code></a> method. <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Enumerator/moveFirst"><code>moveFirst</code></a>: The <strong>Enumerator.moveFirst </strong>method resets the current item in the collection to the first item.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Enumerator/moveNext"><code>moveNext</code></a>: The <strong><code>Enumerator.moveNext</code> method </strong>moves the current item to the next item in the collection.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Debug/msTraceAsyncOperationCompleted"><code>msTraceAsyncCallbackCompleted</code></a>: The <strong><code>debug.msTraceAsyncCallbackCompleted</code> function</strong> indicates that an asynchronous operation has completed.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Debug/msTraceAsyncCallbackStarting"><code>msTraceAsyncCallbackStarting</code></a>: The <strong><code>debug.msTraceAsyncCallbackStarting</code> function</strong> associates the callback stack with a previously specified asynchronous operation.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Debug/msTraceAsyncOperationStarting"><code>msTraceAsyncOperationStarting</code></a>: Initiates a trace for an asynchronous operation.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Debug/msUpdateAsyncCallbackRelation"><code>msUpdateAsyncCallbackRelation</code></a>: The <strong><code>debug.msUpdateAsyncCallbackRelation</code> function</strong> updates the relationship status between a synchronous work item and the associated asynchronous operation.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="N">N</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/next"><code>next</code></a>: The <code><strong>next</strong></code><strong><code>()</code></strong> method returns an object with two properties <code>done</code> and <code>value</code>. You can also provide a parameter to the <code>next</code> method to send a value to the generator.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize"><code>normalize</code></a>: The <strong><code>normalize()</code></strong> method returns the Unicode Normalization Form of a given string (if the value isn't a string, it will be converted to one first).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/notify"><code>notify</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.notify()</code></strong> method notifies up some agents that are sleeping in the wait queue.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now"><code>now</code></a>: The <strong><code>Date.now()</code></strong> method returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="O">O</h2>
|
||
<ul>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/observe"><code>observe</code></a>: The <strong><code>Array.observe()</code></strong> method was used for asynchronously observing changes to Arrays, similar to <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe" title="The Object.observe() method was used for asynchronously observing the changes to an object. It provided a stream of changes in the order in which they occur. However, this API has been deprecated and removed from browsers. You can use the more general Proxy object instead."><code>Object.observe()</code></a> for objects. It provided a stream of changes in order of occurrence. It's equivalent to <code>Object.observe()</code> invoked with the accept type list <code>["add", "update", "delete", "splice"]</code>. However, this API has been deprecated and removed from Browsers. You can use the more general <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy" title="The Proxy object is used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc)."><code>Proxy</code></a> object instead.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe"><code>observe</code></a>: The <strong><code>Object.observe()</code></strong> method was used for asynchronously observing the changes to an object. It provided a stream of changes in the order in which they occur. However, this API has been deprecated and removed from browsers. You can use the more general <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy" title="The Proxy object is used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc)."><code>Proxy</code></a> object instead.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of"><code>of</code></a>: The <code><strong>Array.of()</strong></code> method creates a new <code>Array</code> instance from a variable number of arguments, regardless of number or type of the arguments.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/of"><code>of</code></a>: The <code><strong><em>TypedArray</em>.of()</strong></code> method creates a new <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array</a> from a variable number of arguments. This method is nearly the same as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of" title="The Array.of() method creates a new Array instance from a variable number of arguments, regardless of number or type of the arguments."><code>Array.of()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/or"><code>or</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.or()</code></strong> method computes a bitwise OR with a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/ownKeys"><code>ownKeys</code></a>: The <strong><code>handler.ownKeys()</code></strong> method is a trap for <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys" title="The static Reflect.ownKeys() method returns an array of the target object's own property keys."><code>Reflect.ownKeys()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys"><code>ownKeys</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.ownKeys()</code></strong> method returns an array of the <code>target</code> object's own property keys.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="P">P</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd"><code>padEnd</code></a>: The <strong><code>padEnd()</code></strong> method pads the current string with a given string (repeated, if needed) so that the resulting string reaches a given length. The padding is applied from the end (right) of the current string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart"><code>padStart</code></a>: The <strong><code>padStart()</code></strong> method pads the current string with another string (multiple times, if needed) until the resulting string reaches the given length.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse"><code>parse</code></a>: The <strong><code>Date.parse()</code></strong> method parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC or <code>NaN</code> if the string is unrecognized or, in some cases, contains illegal date values (e.g. 2015-02-31).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse"><code>parse</code></a>: The <strong><code>JSON.parse()</code></strong> method parses a JSON string, constructing the JavaScript value or object described by the string. An optional <strong>reviver</strong> function can be provided to perform a transformation on the resulting object before it is returned.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Errors/JSON_bad_parse"><code>parse: bad parsing</code></a>: <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError" title="The SyntaxError object represents an error when trying to interpret syntactically invalid code."><code>SyntaxError</code></a>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseFloat"><code>parseFloat</code></a>: The <strong><code>Number.parseFloat()</code></strong> method parses a string argument and returns a floating point number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseInt"><code>parseInt</code></a>: The <strong><code>Number.parseInt()</code></strong> method parses a string argument and returns an integer of the specified radix or base.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop"><code>pop</code></a>: The <code><strong>pop()</strong></code> method removes the <strong>last</strong> element from an array and returns that element. This method changes the length of the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow"><code>pow</code></a>: The <strong><code>Math.pow()</code></strong> function returns the <code>base</code> to the <code>exponent</code> power, that is, <code>base<sup>exponent</sup></code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/preventExtensions"><code>preventExtensions</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.preventExtensions()</code></strong> method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). It is similar to <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions" title="The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object)."><code>Object.preventExtensions()</code></a>, but with some <a href="#Difference_to_Object.preventExtensions()">differences</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/preventExtensions"><code>preventExtensions</code></a>: The <strong><code>handler.preventExtensions()</code></strong> method is a trap for <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions" title="The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object)."><code>Object.preventExtensions()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions"><code>preventExtensions</code></a>: The <code><strong>Object.preventExtensions()</strong></code> method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable"><code>propertyIsEnumerable</code></a>: The <code><strong>propertyIsEnumerable()</strong></code> method returns a Boolean indicating whether the specified property is enumerable.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/@@iterator"><code>prototype[@@iterator]</code></a>: The initial value of the @@iterator property is the same function object as the initial value of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/values" title="The values() method returns a new Array Iterator object that contains the values for each index in the array."><code>values</code></a> property.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/@@iterator"><code>prototype[@@iterator]</code></a>: The <strong><code>[@@iterator]()</code></strong> method returns a new <code>Iterator</code> object that iterates over the code points of a String value, returning each code point as a String value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/@@iterator"><code>prototype[@@iterator]</code></a>: The initial value of the <code><strong>@@iterator</strong></code> property is the same function object as the initial value of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values" title="The values() method returns a new Array Iterator object that contains the values for each index in the array."><code>values()</code></a> property.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/@@iterator"><code>prototype[@@iterator]</code></a>: The initial value of the <code><strong>@@iterator</strong></code> property is the same function object as the initial value of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/values" title="The values() method returns a new Iterator object that contains the values for each element in the Set object in insertion order."><code>values</code></a> property.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/@@iterator"><code>prototype[@@iterator]</code></a>: The initial value of the <code><strong>@@iterator</strong></code> property is the same function object as the initial value of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries" title="The entries() method returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order."><code>entries</code></a> method.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@matchAll"><code>prototype[@@matchAll]</code></a>: The <strong><code>[@@matchAll]</code></strong> method returns all matches of the regular expression against a string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@match"><code>prototype[@@match]</code></a>: The <strong><code>[@@match]()</code></strong> method retrieves the matches when matching a <em>string</em> against a <em>regular expression</em>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@replace"><code>prototype[@@replace]</code></a>: The <strong><code>[@@replace]()</code></strong> method replaces some or all matches of a <code>this</code> pattern in a string by a <code>replacement</code>, and returns the result of the replacement as a new string. The <code>replacement</code> can be a string or a function to be called for each match.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@search"><code>prototype[@@search]</code></a>: The <strong><code>[@@search]()</code></strong> method executes a search for a match between a <code>this</code> regular expression and a string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@split"><code>prototype[@@split]</code></a>: The <strong><code>[@@split]()</code></strong> method splits a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="The String global object is a constructor for strings or a sequence of characters."><code>String</code></a> object into an array of strings by separating the string into substrings.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive"><code>prototype[@@toPrimitive]</code></a>: The <code><strong>[@@toPrimitive]()</strong></code> method converts a <code>Date</code> object to a primitive value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/@@toPrimitive"><code>prototype[@@toPrimitive]</code></a>: The <code><strong>[@@toPrimitive]()</strong></code> method converts a Symbol object to a primitive value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push"><code>push</code></a>: The <code><strong>push()</strong></code> method adds one or more elements to the end of an array and returns the new length of the array.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="Q">Q</h2>
|
||
<ul>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/quote"><code>quote</code></a>: The non-standard <strong><code>quote()</code></strong> method returns a copy of the string, replacing various special characters in the string with their escape sequences and wrapping the result in double-quotes (<code>"</code>).
|
||
|
||
|
||
</s>
|
||
</li>
|
||
</ul>
|
||
<h2 id="R">R</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race"><code>race</code></a>: The <code><strong>Promise.race()</strong></code> method returns a promise that resolves or rejects as soon as one of the promises in an iterable resolves or rejects, with the value or reason from that promise.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random"><code>random</code></a>: The <strong><code>Math.random()</code></strong> function returns a floating-point, pseudo-random number in the range 0–1 (inclusive of 0, but not 1) with approximately uniform distribution over that range — which you can then scale to your desired range. The implementation selects the initial seed to the random number generation algorithm; it cannot be chosen or reset by the user.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw"><code>raw</code></a>: The static <strong><code>String.raw()</code></strong> method is a tag function of <a href="/en-US/docs/Web/JavaScript/Reference/template_strings">template literals</a>, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals (yet there is a difference: see explanations in <a class="external" href="https://bugs.chromium.org/p/v8/issues/detail?id=5016" rel="noopener">this issue</a>). It's used to get the raw string form of template strings, that is, substitutions (e.g. <font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);">${foo}</span></font>) are processed, but escapes (e.g. <code>\n</code>) are not.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce"><code>reduce</code></a>: The <code><strong>reduce()</strong></code> method executes a <strong>reducer</strong> function (that you provide) on each member of the array resulting in a single output value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce"><code>reduce</code></a>: The <code><strong>reduce()</strong></code> method applies a function against an accumulator and each value of the typed array (from left-to-right) has to reduce it to a single value. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce" title="The reduce() method executes a reducer function (that you provide) on each member of the array resulting in a single output value."><code>Array.prototype.reduce()</code></a>. <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/ReduceRight"><code>reduceRight</code></a>: The <code><strong>reduceRight()</strong></code> method applies a function against an accumulator and each value of the array (from right-to-left) to reduce it to a single value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight"><code>reduceRight</code></a>: The <code><strong>reduceRight()</strong></code> method applies a function against an accumulator and each value of the typed array (from right-to-left) has to reduce it to a single value. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight" title="The reduceRight() method applies a function against an accumulator and each value of the array (from right-to-left) to reduce it to a single value."><code>Array.prototype.reduceRight()</code></a>. <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/reject"><code>reject</code></a>: The <code><strong>Promise.reject()</strong></code> method returns a <code>Promise</code> object that is rejected with a given reason.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat"><code>repeat</code></a>: The <strong><code>repeat()</code></strong> method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace"><code>replace</code></a>: The <strong><code>replace()</code></strong> method returns a new string with some or all matches of a <code>pattern</code> replaced by a <code>replacement</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve"><code>resolve</code></a>: The <code><strong>Promise.resolve()</strong></code> method returns a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" title="The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value."><code>Promise</code></a> object that is resolved with a given value. If the value is a promise, that promise is returned; if the value is a thenable (i.e. has a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then" title="The then() method returns a Promise. It takes up to two arguments: callback functions for the success and failure cases of the Promise."><code>"then" method</code></a>), the returned promise will "follow" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value. This function flattens nested layers of promise-like objects (e.g. a promise that resolves to a promise that resolves to something) into a single layer.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/resolvedOptions"><code>resolvedOptions</code></a>: The <strong><code>Intl.RelativeTimeFormat.prototype.resolvedOptions()</code></strong> method returns a new object with properties reflecting the locale and relative time formatting options computed during initialization of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat" title="The Intl.RelativeTimeFormat object is a constructor for objects that enable language-sensitive relative time formatting."><code>RelativeTimeFormat</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/resolvedOptions"><code>resolvedOptions</code></a>: The <strong><code>Intl.DateTimeFormat.prototype.resolvedOptions()</code></strong> method returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat" title="The Intl.DateTimeFormat object is a constructor for objects that enable language-sensitive date and time formatting."><code>DateTimeFormat</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/resolvedOptions"><code>resolvedOptions</code></a>: The <strong><code>Intl.NumberFormat.prototype.resolvedOptions()</code></strong> method returns a new object with properties reflecting the locale and number formatting options computed during initialization of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat" title="The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting."><code>NumberFormat</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/resolvedOptions"><code>resolvedOptions</code></a>: The <strong><code>Intl.Collator.prototype.resolvedOptions()</code></strong> method returns a new object with properties reflecting the locale and collation options computed during initialization of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator" title="The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison."><code>Collator</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/resolvedOptions"><code>resolvedOptions</code></a>: The <strong><code>Intl.PluralRules.prototype.resolvedOptions()</code></strong> method returns a new object with properties reflecting the locale and plural formatting options computed during initialization of this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules" title="The Intl.PluralRules object is a constructor for objects that enable plural sensitive formatting and plural language rules."><code>PluralRules</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/return"><code>return</code></a>: The <code><strong>return()</strong></code> method returns the given value and finishes the generator.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse"><code>reverse</code></a>: The <code><strong>reverse()</strong></code> method reverses a typed array in place. The first typed array element becomes the last and the last becomes the first. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse" title="The reverse() method reverses an array in place. The first array element becomes the last, and the last array element becomes the first."><code>Array.prototype.reverse()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse"><code>reverse</code></a>: The <code><strong>reverse()</strong></code> method reverses an array <em><a class="external" href="https://en.wikipedia.org/wiki/In-place_algorithm" rel="noopener">in place</a></em>. The first array element becomes the last, and the last array element becomes the first.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/revocable"><code>revocable</code></a>: The <code><strong>Proxy.revocable()</strong></code> method is used to create a revocable <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy" title="The Proxy object is used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc)."><code>Proxy</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round"><code>round</code></a>: The <strong><code>Math.round()</code></strong> function returns the value of a number rounded to the nearest integer.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="S">S</h2>
|
||
<ul>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/ScriptEngine"><code>ScriptEngine</code></a>: The <strong><code>ScriptEngine</code> function </strong>gets the name of the scripting language in use.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/ScriptEngineBuildVersion"><code>ScriptEngineBuildVersion</code></a>: The <strong><code>ScriptEngineBuildVersion</code> function </strong>bets the build version number of the scripting engine in use.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/ScriptEngineMajorVersion"><code>ScriptEngineMajorVersion</code></a>: The <strong><code>ScriptEngineMajorVersion</code> function</strong> gets the major version number of the scripting engine in use.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/ScriptEngineMinorVersion"><code>ScriptEngineMinorVersion</code></a>: The <strong><code>ScriptEngineMinorVersion</code> function </strong>gets the minor version number of the scripting engine in use.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal"><code>seal</code></a>: The <code><strong>Object.seal()</strong></code> method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/search"><code>search</code></a>: The <strong><code>search()</code></strong> method executes a search for a match between a regular expression and this <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="The String global object is a constructor for strings or a sequence of characters."><code>String</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/select"><code>select</code></a>: The <strong><code>Intl.PluralRules.prototype.select</code></strong> method returns a String indicating which plural rule to use for locale-aware formatting.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/set"><code>set</code></a>: The <code><strong>set()</strong></code> method adds or updates an element with a specified key and a value to a <code>Map</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/set"><code>set</code></a>: The <code><strong>handler.set()</strong></code> method is a trap for setting a property value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/set"><code>set</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.set()</code></strong> method works like setting a property on an object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set"><code>set</code></a>: The <strong><code>set()</code></strong> method stores multiple values in the typed array, reading input values from a specified array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/set"><code>set</code></a>: The <code><strong>set()</strong></code> method adds a new element with a specified <code>key</code> and <code>value</code> to a <code>WeakMap</code> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set"><code>set</code></a>: The <code><strong>set()</strong></code> prototype method of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table" title="The WebAssembly.Table() constructor creates a new Table object of the given size and element type."><code>WebAssembly.Table</code></a> object mutates a reference stored at a given index to a different value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setDate"><code>setDate</code></a>: The <strong><code>setDate()</code></strong> method sets the day of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object relative to the beginning of the currently set month.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat32"><code>setFloat32</code></a>: The <strong><code>setFloat32()</code></strong> method stores a signed 32-bit float (float) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat64"><code>setFloat64</code></a>: The <strong><code>setFloat64()</code></strong> method stores a signed 64-bit float (double) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear"><code>setFullYear</code></a>: The <strong><code>setFullYear()</code></strong> method sets the full year for a specified date according to local time. Returns new timestamp.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours"><code>setHours</code></a>: The <strong><code>setHours()</code></strong> method sets the hours for a specified date according to local time, and returns the number of milliseconds since January 1, 1970 00:00:00 UTC until the time represented by the updated <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> instance.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt16"><code>setInt16</code></a>: The <strong><code>setInt16()</code></strong> method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt32"><code>setInt32</code></a>: The <strong><code>setInt32()</code></strong> method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt8"><code>setInt8</code></a>: The <strong><code>setInt8()</code></strong> method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds"><code>setMilliseconds</code></a>: The <strong><code>setMilliseconds()</code></strong> method sets the milliseconds for a specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMinutes"><code>setMinutes</code></a>: The <strong><code>setMinutes()</code></strong> method sets the minutes for a specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMonth"><code>setMonth</code></a>: The <strong><code>setMonth()</code></strong> method sets the month for a specified date according to the currently set year.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf"><code>setPrototypeOf</code></a>: The <code><strong>Object.setPrototypeOf()</strong></code> method sets the prototype (i.e., the internal <code>[[Prototype]]</code> property) of a specified object to another object or <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/null" title="The value null represents the intentional absence of any object value. It is one of JavaScript's primitive values."><code>null</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/setPrototypeOf"><code>setPrototypeOf</code></a>: The <strong><code>handler.setPrototypeOf()</code></strong> method is a trap for <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf" title="The Object.setPrototypeOf() method sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or null."><code>Object.setPrototypeOf()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/setPrototypeOf"><code>setPrototypeOf</code></a>: The static <code><strong>Reflect</strong></code><strong><code>.setPrototypeOf()</code></strong> method is the same method as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf" title="The Object.setPrototypeOf() method sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or null."><code>Object.setPrototypeOf()</code></a>. It sets the prototype (i.e., the internal <code>[[Prototype]]</code> property) of a specified object to another object or to <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/null" title="The value null represents the intentional absence of any object value. It is one of JavaScript's primitive values."><code>null</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setSeconds"><code>setSeconds</code></a>: The <strong><code>setSeconds()</code></strong> method sets the seconds for a specified date according to local time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setTime"><code>setTime</code></a>: The <strong><code>setTime()</code></strong> method sets the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCDate"><code>setUTCDate</code></a>: The <strong><code>setUTCDate()</code></strong> method sets the day of the month for a specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear"><code>setUTCFullYear</code></a>: The <strong><code>setUTCFullYear()</code></strong> method sets the full year for a specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours"><code>setUTCHours</code></a>: The <strong><code>setUTCHours()</code></strong> method sets the hour for a specified date according to universal time, and returns the number of milliseconds since January 1, 1970 00:00:00 UTC until the time represented by the updated <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> instance.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds"><code>setUTCMilliseconds</code></a>: The <strong><code>setUTCMilliseconds()</code></strong> method sets the milliseconds for a specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes"><code>setUTCMinutes</code></a>: The <strong><code>setUTCMinutes()</code></strong> method sets the minutes for a specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth"><code>setUTCMonth</code></a>: The <strong><code>setUTCMonth()</code></strong> method sets the month for a specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCSeconds"><code>setUTCSeconds</code></a>: The <strong><code>setUTCSeconds()</code></strong> method sets the seconds for a specified date according to universal time.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint16"><code>setUint16</code></a>: The <strong><code>setUint16()</code></strong> method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint32"><code>setUint32</code></a>: The <strong><code>setUint32()</code></strong> method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint8"><code>setUint8</code></a>: The <strong><code>setUint8()</code></strong> method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" title="The DataView view provides a low-level interface for reading and writing multiple number types in a binary ArrayBuffer, without having to care about the platform's endianness."><code>DataView</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear"><code>setYear</code></a>: The <strong><code>setYear()</code></strong> method sets the year for a specified date according to local time. Because <code>setYear()</code> does not set full years ("year 2000 problem"), it is no longer used and has been replaced by the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear" title="The setFullYear() method sets the full year for a specified date according to local time. Returns new timestamp."><code>setFullYear()</code></a> method.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift"><code>shift</code></a>: The <code><strong>shift()</strong></code> method removes the <strong>first</strong> element from an array and returns that removed element. This method changes the length of the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign"><code>sign</code></a>: The <strong><code>Math.sign()</code></strong> function returns the sign of a number, indicating whether the number is positive, negative or zero.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sin"><code>sin</code></a>: The <strong><code>Math.sin()</code></strong> function returns the sine of a number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sinh"><code>sinh</code></a>: The <strong><code>Math.sinh()</code></strong> function returns the hyperbolic sine of a number, that can be expressed using the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E" title="The Math.E property represents the base of natural logarithms, e, approximately 2.718.">constant e</a>:
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice"><code>slice</code></a>: The <strong><code>slice()</code></strong> method extracts a section of a string and returns it as a new string, without modifying the original string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/slice"><code>slice</code></a>: The <code><strong>slice()</strong></code> method returns a new <code>ArrayBuffer</code> whose contents are a copy of this <code>ArrayBuffer</code>'s bytes from <code>begin</code>, inclusive, up to <code>end</code>, exclusive.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice"><code>slice</code></a>: The <code><strong>slice()</strong></code> method returns a shallow copy of a portion of a typed array into a new typed array object. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice" title="The slice() method returns a shallow copy of a portion of an array into a new array object selected from begin to end (end not included). The original array will not be modified."><code>Array.prototype.slice()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice"><code>slice</code></a>: The <code><strong>slice()</strong></code> method returns a shallow copy of a portion of an array into a new array object selected from <code>begin</code> to <code>end</code> (<code>end</code> not included). The original array will not be modified.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/slice"><code>slice</code></a>: The <code><strong>SharedArrayBuffer.prototype.slice()</strong></code> method returns a new <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer" title="The SharedArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer, similar to the ArrayBuffer object, but in a way that they can be used to create views on shared memory. Unlike an ArrayBuffer, a SharedArrayBuffer cannot become detached."><code>SharedArrayBuffer</code></a> whose contents are a copy of <code>this SharedArrayBuffer</code>'s bytes from begin, inclusive, up to end, exclusive. If either begin or end is negative, it refers to an index from the end of the array, as opposed to from the beginning. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice" title="The slice() method returns a shallow copy of a portion of an array into a new array object selected from begin to end (end not included). The original array will not be modified."><code>Array.prototype.slice()</code></a><em>.</em>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/small"><code>small</code></a>: The <strong><code>small()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/small" title="The HTML <small> element makes the text font size one size smaller (for example, from large to medium, or from small to x-small) down to the browser's minimum font size. In HTML5, this element is repurposed to represent side-comments and small print, including copyright and legal text, independent of its styled presentation."><code><small></code></a> HTML element that causes a string to be displayed in a small font.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some"><code>some</code></a>: The <code><strong>some()</strong></code> method tests whether at least one element in the array passes the test implemented by the provided function.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some"><code>some</code></a>: The <code><strong>some()</strong></code> method tests whether some element in the typed array passes the test implemented by the provided function. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some" title="The some() method tests whether at least one element in the array passes the test implemented by the provided function."><code>Array.prototype.some()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort"><code>sort</code></a>: The <code><strong>sort()</strong></code> method sorts the elements of an array <em><a class="external" href="https://en.wikipedia.org/wiki/In-place_algorithm" rel="noopener">in place</a></em> and returns the array. The default sort order is built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort"><code>sort</code></a>: The <code><strong>sort()</strong></code> method sorts the elements of a typed array numerically <em>in place</em> and returns the typed array. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort" title="The sort() method sorts the elements of an array in place and returns the array. The default sort order is built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values."><code>Array.prototype.sort()</code></a>, except that sorts the values numerically instead of as strings<em>.</em> <em>TypedArray</em> is one of the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice"><code>splice</code></a>: The <strong><code>splice()</code></strong> method changes the contents of an array by removing or replacing existing elements and/or adding new elements <a class="external" href="https://en.wikipedia.org/wiki/In-place_algorithm" rel="noopener">in place</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split"><code>split</code></a>: The <strong><code>split()</code></strong> method splits a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="The String global object is a constructor for strings or a sequence of characters."><code>String</code></a> object into an array of strings by separating the string into substrings, using a specified separator string to determine where to make each split.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt"><code>sqrt</code></a>: The <strong><code>Math.sqrt()</code></strong> function returns the square root of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith"><code>startsWith</code></a>: The <strong><code>startsWith()</code></strong> method determines whether a string begins with the characters of a specified string, returning <code>true</code> or <code>false</code> as appropriate.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/store"><code>store</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.store()</code></strong> method stores a given value at the given position in the array and returns that value.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/strike"><code>strike</code></a>: The <strong><code>strike()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/strike" title="The HTML <strike> element (or HTML Strikethrough Element) places a strikethrough (horizontal line) over text."><code><strike></code></a> HTML element that causes a string to be displayed as struck-out text.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify"><code>stringify</code></a>: The <strong><code>JSON.stringify()</code></strong> method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/sub"><code>sub</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.sub()</code></strong> method substracts a given value at a given position in the array and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/sub"><code>sub</code></a>: The <strong><code>sub()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/sub" title="The HTML Subscript element (<sub>) specifies inline text which should be displayed as subscript for solely typographical reasons."><code><sub></code></a> HTML element that causes a string to be displayed as subscript.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray"><code>subarray</code></a>: The <code>subarray()</code> method returns a new <em>TypedArray</em> on the same <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer" title="The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You cannot directly manipulate the contents of an ArrayBuffer; instead, you create one of the typed array objects or a DataView object which represents the buffer in a specific format, and use that to read and write the contents of the buffer."><code>ArrayBuffer</code></a> store and with the same element types as for this <em>TypedArray</em> object. The <code>begin</code> offset is <strong>inclusive</strong> and the <code>end</code> offset is <strong>exclusive</strong>. <em>TypedArray</em> is one of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr"><code>substr</code></a>: The <strong><code>substr()</code></strong> method returns a portion of the string, starting at the specified index and extending for a given number of characters afterward.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring"><code>substring</code></a>: The <strong><code>substring()</code></strong> method returns the part of the <code>string</code> between the start and end indexes, or to the end of the string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/sup"><code>sup</code></a>: The <strong><code>sup()</code></strong> method creates a <a href="/en-US/docs/Web/HTML/Element/sup" title="The HTML Superscript element (<sup>) specifies inline text which is to be displayed as superscript for solely typographical reasons."><code><sup></code></a> HTML element that causes a string to be displayed as superscript.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/supportedLocalesOf"><code>supportedLocalesOf</code></a>: The <strong><code>Intl.NumberFormat.supportedLocalesOf()</code></strong> method returns an array containing those of the provided locales that are supported in number formatting without having to fall back to the runtime's default locale.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/supportedLocalesOf"><code>supportedLocalesOf</code></a>: The <strong><code>Intl.DateTimeFormat.supportedLocalesOf()</code></strong> method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/supportedLocalesOf"><code>supportedLocalesOf</code></a>: The <strong><code>Intl.Collator.supportedLocalesOf()</code></strong> method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/supportedLocalesOf"><code>supportedLocalesOf</code></a>: The <strong><code>Intl.PluralRules.supportedLocalesOf()</code></strong> method returns an array containing those of the provided locales that are supported in plural formatting without having to fall back to the runtime's default locale.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/supportedLocalesOf"><code>supportedLocalesOf</code></a>: The <strong><code>Intl.RelativeTimeFormat.supportedLocalesOf()</code></strong> method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/ListFormat/supportedLocalesOf"><code>supportedLocalesOf</code></a>: The <strong><code>Intl.ListFormat.supportedLocalesOf()</code></strong> method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="T">T</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tan"><code>tan</code></a>: The <strong><code>Math.tan()</code></strong> function returns the tangent of a number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tanh"><code>tanh</code></a>: The <strong><code>Math.tanh()</code></strong> function returns the hyperbolic tangent of a number, that is
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test"><code>test</code></a>: The <strong><code>test()</code></strong> method executes a search for a match between a regular expression and a specified string. Returns <code>true</code> or <code>false</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then"><code>then</code></a>: The <code><strong>then()</strong></code> method returns a <a href="/en-US/docs/Web/API/Promise" title="REDIRECT Promise"><code>Promise</code></a>. It takes up to two arguments: callback functions for the success and failure cases of the <code>Promise</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/throw"><code>throw</code></a>: The <code><strong>throw()</strong></code> method resumes the execution of a generator by throwing an error into it and returns an object with two properties <code>done</code> and <code>value</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/VBArray/toArray"><code>toArray</code></a>: The <strong><code>VBArray.toArray</code> method</strong> returns a standard JavaScript array converted from a VBArray.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toDateString"><code>toDateString</code></a>: The <strong><code>toDateString()</code></strong> method returns the date portion of a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object in human readable form in American English.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential"><code>toExponential</code></a>: The <strong><code>toExponential()</code></strong> method returns a string representing the Number object in exponential notation.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed"><code>toFixed</code></a>: The <strong><code>toFixed()</code></strong> method formats a number using fixed-point notation.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toGMTString"><code>toGMTString</code></a>: The <strong><code>toGMTString()</code></strong> method converts a date to a string, using Internet Greenwich Mean Time (GMT) conventions. The exact format of the value returned by <code>toGMTString()</code> varies according to the platform and browser, in general it should represent a human readable date string.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString"><code>toISOString</code></a>: The <strong><code>toISOString()</code></strong> method returns a string in <em>simplified</em> extended ISO format (<a class="external" href="http://en.wikipedia.org/wiki/ISO_8601" rel="noopener">ISO 8601</a>), which is always 24 or 27 characters long (<strong><code>YYYY-MM-DDTHH:mm:ss.sssZ</code></strong> or <strong><code>±YYYYYY-MM-DDTHH:mm:ss.sssZ</code></strong>, respectively). The timezone is always zero UTC offset, as denoted by the suffix "<code>Z</code>".
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toInteger"><code>toInteger</code></a>: The <strong><code>Number.toInteger()</code></strong> method used to evaluate the passed value and convert it to an integer, but its implementation has been removed.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON"><code>toJSON</code></a>: The <strong><code>toJSON()</code></strong> method returns a string representation of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString"><code>toLocaleDateString</code></a>: The <strong><code>toLocaleDateString()</code></strong> method returns a string with a language sensitive representation of the date portion of this date. The new <code>locales</code> and <code>options</code> arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the <code>locales</code> and <code>options</code> arguments, the locale used and the form of the string returned are entirely implementation dependent.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat"><code>toLocaleFormat</code></a>: The non-standard <strong><code>toLocaleFormat()</code></strong> method converts a date to a string using the specified formatting. <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat" title="The Intl.DateTimeFormat object is a constructor for objects that enable language-sensitive date and time formatting."><code>Intl.DateTimeFormat</code></a> is an alternative to format dates in a standards-compliant way. See also the newer version of <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString" title="The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent."><code>Date.prototype.toLocaleDateString()</code></a>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase"><code>toLocaleLowerCase</code></a>: The <strong><code>toLocaleLowerCase()</code></strong> method returns the calling string value converted to lower case, according to any locale-specific case mappings.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString"><code>toLocaleString</code></a>: The <strong><code>toLocaleString()</code></strong> method returns a string with a language sensitive representation of this date. The new <code>locales</code> and <code>options</code> arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the <code>locales</code> and <code>options</code> arguments, the locale used and the form of the string returned are entirely implementation dependent.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString"><code>toLocaleString</code></a>: The <code><strong>toLocaleString()</strong></code> method returns a string representing the elements of the typed array. The elements are converted to strings and are separated by a locale-specific string (such as a comma “,”). This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toLocaleString" title="The toLocaleString() method returns a string representing the elements of the array. The elements are converted to Strings using their toLocaleString methods and these Strings are separated by a locale-specific String (such as a comma “,”)."><code>Array.prototype.toLocaleString()</code></a> and, as the typed array elements are numbers, the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString" title="The toLocaleString() method returns a string with a language-sensitive representation of this number."><code>Number.prototype.toLocaleString()</code></a> applies for each element. <em>TypedArray</em> is one of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString"><code>toLocaleString</code></a>: The <strong><code>toLocaleString()</code></strong> method returns a string with a language-sensitive representation of this number.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toLocaleString"><code>toLocaleString</code></a>: The <code><strong>toLocaleString()</strong></code> method returns a string representing the elements of the array. The elements are converted to Strings using their <code>toLocaleString</code> methods and these Strings are separated by a locale-specific String (such as a comma “,”).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString"><code>toLocaleString</code></a>: The <code><strong>toLocaleString()</strong></code> method returns a string representing the object. This method is meant to be overridden by derived objects for locale-specific purposes.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString"><code>toLocaleTimeString</code></a>: The <strong><code>toLocaleTimeString()</code></strong> method returns a string with a language sensitive representation of the time portion of this date. The new <code>locales</code> and <code>options</code> arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the <code>locales</code> and <code>options</code> arguments, the locale used and the form of the string returned are entirely implementation dependent.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase"><code>toLocaleUpperCase</code></a>: The <strong><code>toLocaleUpperCase()</code></strong> method returns the calling string value converted to upper case, according to any locale-specific case mappings.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase"><code>toLowerCase</code></a>: The <strong><code>toLowerCase()</code></strong> method returns the calling string value converted to lower case.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision"><code>toPrecision</code></a>: The <strong><code>toPrecision()</code></strong> method returns a string representing the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" title="The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor. A primitive type object number is created using the Number() function."><code>Number</code></a> object to the specified precision.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toSource"><code>toSource</code></a>: The <strong><code>toSource()</code></strong> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toSource"><code>toSource</code></a>: The <strong><code>toSource()</code></strong> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSource"><code>toSource</code></a>: The <code><strong>toSource()</strong></code> method returns a string representing the source code of the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toSource"><code>toSource</code></a>: The <code><strong>toSource()</strong></code> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toSource"><code>toSource</code></a>: The <code><strong>toSource()</strong></code> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toSource"><code>toSource</code></a>: The <code><strong>toSource()</strong></code> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/toSource"><code>toSource</code></a>: The <strong><code>toSource()</code></strong> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toSource"><code>toSource</code></a>: The <strong><code>toSource()</code></strong> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/toSource"><code>toSource</code></a>: The <code><strong>toSource()</strong></code> method returns code that could eval to the same error.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toSource"><code>toSource</code></a>: The <strong><code>toSource()</code></strong> method returns a string representing the source code of the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString"><code>toString</code></a>: The <code><strong>toString()</strong></code> method returns a string representing the specified array and its elements.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString"><code>toString</code></a>: The <code><strong>toString()</strong></code> method returns a string representing the specified array and its elements. This method has the same algorithm as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString" title="The toString() method returns a string representing the specified array and its elements."><code>Array.prototype.toString()</code></a><em>.</em> <em>TypedArray</em> is one of the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects">typed array types</a> here.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString"><code>toString</code></a>: The <code><strong>toString()</strong></code> method returns a string representing the source code of the function.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/toString"><code>toString</code></a>: The <code><strong>toString()</strong></code> method returns a string representing the specified <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error" title="The Error constructor creates an error object."><code>Error</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/toString"><code>toString</code></a>: The <strong><code>toString()</code></strong> method returns a string representing the regular expression.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toString"><code>toString</code></a>: The <code><strong>toString()</strong></code> method returns a string representing the specified <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol" title='The Symbol() function returns a value of type symbol, has static properties that expose several members of built-in objects, has static methods that expose the global symbol registry, and resembles a built-in object class but is incomplete as a constructor because it does not support the syntax "new Symbol()".'><code>Symbol</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toString"><code>toString</code></a>: The <strong><code>toString()</code></strong> method returns a string representing the specified <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toString"><code>toString</code></a>: The <code><strong>toString()</strong></code> method returns a string representing the specified Boolean object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString"><code>toString</code></a>: The <code><strong>toString()</strong></code> method returns a string representing the object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toString"><code>toString</code></a>: The <strong><code>toString()</code></strong> method returns a string representing the specified object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString"><code>toString</code></a>: The <strong><code>toString()</code></strong> method returns a string representing the specified <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" title="The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor. A primitive type object number is created using the Number() function."><code>Number</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toTimeString"><code>toTimeString</code></a>: The <strong><code>toTimeString()</code></strong> method returns the time portion of a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object in human readable form in American English.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString"><code>toUTCString</code></a>: The <strong><code>toUTCString()</code></strong> method converts a date to a string, using the UTC time zone.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase"><code>toUpperCase</code></a>: The <strong><code>toUpperCase()</code></strong> method returns the calling string value converted to uppercase (the value will be converted to a string if it isn't one).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="这是一个实验性的 API,请尽量不要在生产环境中使用它。"><i class="icon-beaker"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer"><code>transfer</code></a>: The static <code><strong>ArrayBuffer.transfer()</strong></code> method returns a new <code>ArrayBuffer</code> whose contents have been taken from the <code>oldBuffer</code>'s data and then is either truncated or zero-extended by <code>newByteLength</code>. If <code>newByteLength</code> is <code>undefined</code>, the <code>byteLength</code> of the <code>oldBuffer</code> is used. This operation leaves <code>oldBuffer</code> in a detached state.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim"><code>trim</code></a>: The <strong><code>trim()</code></strong> method removes whitespace from both ends of a string. Whitespace in this context is all the whitespace characters (space, tab, no-break space, etc.) and all the line terminator characters (LF, CR, etc.).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd"><code>trimEnd</code></a>: The <strong><code>trimEnd()</code></strong> method removes whitespace from the end of a string. <code>trimRight()</code> is an alias of this method.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart"><code>trimStart</code></a>: The <strong><code>trimStart()</code></strong> method removes whitespace from the beginning of a string. <code>trimLeft()</code> is an alias of this method.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc"><code>trunc</code></a>: The <strong><code>Math.trunc()</code></strong> function returns the integer part of a number by removing any fractional digits.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="U">U</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC"><code>UTC</code></a>: The <strong><code>Date.UTC()</code></strong> method accepts the same parameters as the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> constructor, but treats them as UTC. It returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This API has not been standardized."><i class="icon-warning-sign"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/VBArray/ubound"><code>ubound</code></a>: The<strong> <code>VBArray.ubound</code> method </strong>returns the highest index value used in the specified dimension of the VBArray.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unobserve"><code>unobserve</code></a>: The Array<strong>.unobserve()</strong> method was used to remove observers set by <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/observe" title="The Array.observe() method was used for asynchronously observing changes to Arrays, similar to Object.observe() for objects. It provided a stream of changes in order of occurrence. It's equivalent to Object.observe() invoked with the accept type list ["add", "update", "delete", "splice"]. However, this API has been deprecated and removed from Browsers. You can use the more general Proxy object instead."><code>Array.observe()</code></a>, but has been deprecated and removed from Browsers. You can use the more general <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy" title="The Proxy object is used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc)."><code>Proxy</code></a> object instead.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/unobserve"><code>unobserve</code></a>: The <strong><code>Object.unobserve()</code></strong> method was used to remove observers set by <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe" title="The Object.observe() method was used for asynchronously observing the changes to an object. It provided a stream of changes in the order in which they occur. However, this API has been deprecated and removed from browsers. You can use the more general Proxy object instead."><code>Object.observe()</code></a>, but has been deprecated and removed from Browsers. You can use the more general <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy" title="The Proxy object is used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc)."><code>Proxy</code></a> object instead.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift"><code>unshift</code></a>: The <code><strong>unshift()</strong></code> method adds one or more elements to the beginning of an array and returns the new length of the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/unwatch"><code>unwatch</code></a>: The <code><strong>unwatch()</strong></code> method removes a watchpoint set with the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch" title="The watch() method watches for a property to be assigned a value and runs a function when that occurs."><code>watch()</code></a> method.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
</ul>
|
||
<h2 id="V">V</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate"><code>validate</code></a>: The <strong><code>WebAssembly.validate()</code></strong> function validates a given <a href="/en-US/docs/Web/JavaScript/Typed_arrays">typed array</a> of WebAssembly binary code, returning whether the bytes form a valid wasm module (<code>true</code>) or not (<code>false</code>).
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/valueOf"><code>valueOf</code></a>: The <strong><code>valueOf()</code></strong> method returns the primitive value of a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Creates a JavaScript Date instance that represents a single moment in time. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC."><code>Date</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/valueOf"><code>valueOf</code></a>: The <strong><code>valueOf()</code></strong> method returns the wrapped primitive value of a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" title="The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor. A primitive type object number is created using the Number() function."><code>Number</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf"><code>valueOf</code></a>: The <strong><code>valueOf()</code></strong> method returns the primitive value of the specified object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/valueOf"><code>valueOf</code></a>: The <code><strong>valueOf()</strong></code> method returns the primitive value of a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" title="The Boolean object is an object wrapper for a boolean value."><code>Boolean</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf"><code>valueOf</code></a>: The <strong><code>valueOf()</code></strong> method returns the primitive value of a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" title="The String global object is a constructor for strings or a sequence of characters."><code>String</code></a> object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/valueOf"><code>valueOf</code></a>: The <code><strong>valueOf()</strong></code> method returns the primitive value of a Symbol object.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/values"><code>values</code></a>: The <code><strong>values()</strong></code> method returns a new <code>Iterator</code> object that contains the values for each element in the <code>Set</code> object in insertion order.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/values"><code>values</code></a>: The <code><strong>values()</strong></code> method returns a new <strong><a href="/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators">Iterator</a></strong> object that contains the values for each element in the <code>Map</code> object in insertion order.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values"><code>values</code></a>: The <strong><code>values()</code></strong> method returns a new <strong><code>Array Iterator</code></strong> object that contains the values for each index in the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/values"><code>values</code></a>: The <strong><code>values()</code></strong> method returns a new <code>Array Iterator</code> object that contains the values for each index in the array.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values"><code>values</code></a>: The <code><strong>Object.values()</strong></code> method returns an array of a given object's own enumerable property values, in the same order as that provided by a <a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in" title="The for...in statement iterates over all non-Symbol, enumerable properties of an object."><code>for...in</code></a> loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="W">W</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait"><code>wait</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.wait()</code></strong> method verifies that a given position in an <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array" title="The Int32Array typed array represents an array of twos-complement 32-bit signed integers in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation)."><code>Int32Array</code></a> still contains a given value and if so sleeps, awaiting a wakeup or a timeout. It returns a string which is either <code>"ok"</code>, <code>"not-equal"</code>, or <code>"timed-out"</code>.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<span class="sidebar-icon"><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span></span>
|
||
<s class="obsoleteElement">
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch"><code>watch</code></a>: The <code><strong>watch()</strong></code> method watches for a property to be assigned a value and runs a function when that occurs.
|
||
|
||
|
||
</s>
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Debug/write"><code>write</code></a>: The <strong><code>debug.write</code> function</strong> sends strings to the script debugger.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Microsoft_Extensions/Debug/writeln"><code>writeln</code></a>: The <code><strong>debug.writeln</strong></code> <strong>function</strong> sends strings to the script debugger, followed by a newline character.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="X">X</h2>
|
||
<ul>
|
||
<li>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/xor"><code>xor</code></a>: The static <code><strong>Atomics</strong></code><strong><code>.xor()</code></strong> method computes a bitwise XOR with a given value at a given position in the array, and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.
|
||
|
||
|
||
|
||
</li>
|
||
</ul>
|
||
<h2 id="Y">Y</h2>
|
||
<ul>
|
||
</ul>
|
||
<h2 id="Z">Z</h2>
|
||
<ul>
|
||
</ul>
|
||
<h2 id="_">_</h2>
|
||
<ul>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__"><code>__defineGetter__</code></a>: The <code><strong>__defineGetter__</strong></code> method binds an object's property to a function to be called when that property is looked up.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__"><code>__defineSetter__</code></a>: The <code><strong>__defineSetter__</strong></code> method binds an object's property to a function to be called when an attempt is made to set that property.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__"><code>__lookupGetter__</code></a>: The <code><strong>__lookupGetter__</strong></code> method returns the function bound as a getter to the specified property.
|
||
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<span class="sidebar-icon"><span title="This deprecated API should no longer be used, but will probably still work."><i class="icon-thumbs-down-alt"> </i></span></span>
|
||
<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__"><code>__lookupSetter__</code></a>: The <code><strong>__lookupSetter__</strong></code> method returns the function bound as a setter to the specified property.
|
||
|
||
|
||
|
||
</li>
|
||
</ul></div>
|
||
<div> </div>
|
||
<h2 id="参见">参见</h2>
|
||
<ul>
|
||
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Properties_Index">属性索引</a></li>
|
||
</ul>
|
||
</article> |