这篇文章按照字母顺序列出了MDN里边所有的JavaScript方法。
Found 441 pages with the tag "Method":
A
-
abs
: TheMath.abs()
function returns the absolute value of a number, that is -
acos
: TheMath.acos()
function returns the arccosine (in radians) of a number, that is -
acosh
: TheMath.acosh()
function returns the hyperbolic arc-cosine of a number, that is -
add
: The staticAtomics
.add()
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. -
add
: Theadd()
method appends a new object to the end of aWeakSet
object. -
add
: Theadd()
method appends a new element with a specifiedvalue
to the end of aSet
object. -
all
: ThePromise.all()
method returns a singlePromise
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. -
anchor
: Theanchor()
method creates an<a>
HTML anchor element that is used as a hypertext target. -
and
: The staticAtomics
.and()
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. -
apply
: Theapply()
method calls a function with a giventhis
value, andarguments
provided as an array (or an array-like object). -
apply
: Thehandler.apply()
method is a trap for a function call. -
apply
: The staticReflect
.apply()
method calls a target function with arguments as specified. -
asIntN
: TheBigInt.asIntN
static method is used to wrap a BigInt between -2width-1 and 2width-1-1. -
asUintN
: TheBigInt.asUintN
static method is used to wrap a BigInt between 0 and 2width-1. -
asin
: TheMath.asin()
function returns the arcsine (in radians) of a number, that is -
asinh
: TheMath.asinh()
function returns the hyperbolic arcsine of a number, that is -
assign
: TheObject.assign()
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. -
atEnd
: TheEnumerator.atEnd
method returns a Boolean value indicating if the enumerator is at the end of the collection. -
atan
: TheMath.atan()
function returns the arctangent (in radians) of a number, that is -
atan2
: TheMath.atan2()
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), forMath.atan2(y,x)
. -
atanh
: TheMath.atanh()
function returns the hyperbolic arctangent of a number, that is
B
-
big
: Thebig()
method creates a<big>
HTML element that causes a string to be displayed in a big font. -
bind
: Thebind()
method creates a new function that, when called, has itsthis
keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called. -
blink
: Theblink()
method creates a<blink>
HTML element that causes a string to blink. -
bold
: Thebold()
method creates a<b>
HTML element that causes a string to be displayed as bold.
C
-
call
: Thecall()
method calls a function with a giventhis
value and arguments provided individually. -
catch
: The catch() method returns aPromise
and deals with rejected cases only. It behaves the same as callingPromise.prototype.then(undefined, onRejected)
(in fact, callingobj.catch(onRejected)
internally callsobj.then(undefined, onRejected)
). This means, that you have to provideonRejected
function even if you want to fallback toundefined
result value - for exampleobj.catch(() => {})
. -
cbrt
: TheMath.cbrt()
function returns the cube root of a number, that is -
ceil
: TheMath.ceil()
function returns the smallest integer greater than or equal to a given number. -
charAt
: TheString
object'scharAt()
method returns a new string consisting of the single UTF-16 code unit located at the specified offset into the string. -
charCodeAt
: ThecharCodeAt()
method returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index. -
clear
: Theclear()
method removes all elements from aMap
object. -
clear
: Theclear()
method used to remove all elements from aWeakSet
object, but is no longer part of ECMAScript and its implementations. -
clear
: Theclear()
method used to remove all elements from aWeakMap
object, but is no longer part of ECMAScript and its implementations. -
clear
: Theclear()
method removes all elements from aSet
object. -
clz32
: TheMath.clz32()
function returns the number of leading zero bits in the 32-bit binary representation of a number. -
codePointAt
: ThecodePointAt()
method returns a non-negative integer that is the Unicode code point value. -
compare
: TheIntl.Collator.prototype.compare()
method compares two strings according to the sort order of thisCollator
object. -
compareExchange
: The staticAtomics
.compareExchange()
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. -
compile
: TheWebAssembly.compile()
function compiles aWebAssembly.Module
from WebAssembly binary code. This function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, theWebAssembly.instantiate()
function should be used). -
compile
: The deprecatedcompile
()
method is used to (re-)compile a regular expression during execution of a script. It is basically the same as theRegExp
constructor. -
compileStreaming
: TheWebAssembly.compileStreaming()
function compiles aWebAssembly.Module
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, theWebAssembly.instantiateStreaming()
function should be used). -
concat
: Theconcat()
method concatenates the string arguments to the calling string and returns a new string. -
concat
: Theconcat()
method is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array. -
construct
: The staticReflect
.construct()
method acts like thenew
operator, but as a function. It is equivalent to callingnew target(...args)
. It gives also the added option to specify a different prototype. -
construct
: Thehandler.construct()
method is a trap for thenew
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[[Construct]]
internal method (i.e.new target
must be valid). -
copyWithin
: ThecopyWithin()
method shallow copies part of an array to another location in the same array and returns it, without modifying its size. -
copyWithin
: ThecopyWithin()
method copies the sequence of array elements within the array to the position starting attarget
. The copy is taken from the index positions of the second and third argumentsstart
andend
. Theend
argument is optional and defaults to the length of the array. This method has the same algorithm asArray.prototype.copyWithin
. TypedArray is one of the typed array types here. -
cos
: TheMath.cos()
static function returns the cosine of the specified angle, which must be specified in radians. This value is -
cosh
: TheMath.cosh()
function returns the hyperbolic cosine of a number, that can be expressed using the constant e: -
create
: TheObject.create()
method creates a new object, using an existing object as the prototype of the newly created object. -
customSections
: TheWebAssembly.customSections()
function returns a copy of the contents of all custom sections in the given module with the given string name.
D
-
defineProperties
: TheObject.defineProperties()
method defines new or modifies existing properties directly on an object, returning the object. -
defineProperty
: The staticReflect
.defineProperty()
method is likeObject.defineProperty()
but returns aBoolean
. -
defineProperty
: The static methodObject.defineProperty()
defines a new property directly on an object, or modifies an existing property on an object, and returns the object. -
defineProperty
: Thehandler.defineProperty()
method is a trap forObject.defineProperty()
. -
delete
: Thedelete()
method removes the specified element from aWeakSet
object. -
delete
: Thedelete()
method removes the specified element from aMap
object by key. -
delete
: Thedelete()
method removes the specified element from aWeakMap
object. -
delete
: Thedelete()
method removes the specified element from aSet
object. -
deleteProperty
: The staticReflect
.deleteProperty()
method allows to delete properties. It is like thedelete
operator as a function. -
deleteProperty
: Thehandler.deleteProperty()
method is a trap for thedelete
operator. -
dimensions
: TheVBArray.dimensions
method returns the number of dimensions in a VBArray.
E
-
endsWith
: TheendsWith()
method determines whether a string ends with the characters of a specified string, returningtrue
orfalse
as appropriate. -
entries
: Theentries()
method returns a newArray Iterator
object that contains the key/value pairs for each index in the array. -
entries
: Theentries()
method returns a newArray Iterator
object that contains the key/value pairs for each index in the array. -
entries
: Theentries()
method returns a new Iterator object that contains the[key, value]
pairs for each element in theMap
object in insertion order. -
entries
: Theentries()
method returns a newIterator
object that contains an array of[value, value]
for each element in theSet
object, in insertion order. ForSet
objects there is nokey
like inMap
objects. However, to keep the API similar to theMap
object, each entry has the same value for its key and value here, so that an array[value, value]
is returned. -
entries
: TheObject.entries()
method returns an array of a given object's own enumerable string-keyed property[key, value]
pairs, in the same order as that provided by afor...in
loop (the difference being that a for-in loop enumerates properties in the prototype chain as well). The order of the array returned by Object.entries() does not depend on how an object is defined. If there is a need for certain ordering then the array should be sorted first likeObject.entries(obj).sort((a, b) => b[0].localeCompare(a[0]));
. -
enumerate
: Thehandler.enumerate()
method used to be a trap forfor...in
statements, but has been removed from the ECMAScript standard in ES2016 and is deprecated in browsers. -
enumerate
: The staticReflect
.enumerate()
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. -
eval
: TheObject.eval()
method used to evaluate a string of JavaScript code in the context of an object, however, this method has been removed. -
every
: Theevery()
method tests whether all elements in the array pass the test implemented by the provided function. -
every
: Theevery()
method tests whether all elements in the typed array pass the test implemented by the provided function. This method has the same algorithm asArray.prototype.every()
. TypedArray is one of the typed array types here. -
exchange
: The staticAtomics.exchange()
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. -
exec
: Theexec()
method executes a search for a match in a specified string. Returns a result array, ornull
. -
exp
: TheMath.exp()
function returnsex
, wherex
is the argument, ande
is Euler's number (also known as Napier's constant), the base of the natural logarithms. -
expm1
: TheMath.expm1()
function returnsex - 1
, wherex
is the argument, and e the base of the natural logarithms. -
exports
: TheWebAssembly.exports()
function returns an array containing descriptions of all the declared exports of the givenModule
.
F
-
fill
: Thefill()
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 asArray.prototype.fill()
. TypedArray is one of the typed array types here. -
fill
: Thefill()
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. -
filter
: Thefilter()
method creates a new array with all elements that pass the test implemented by the provided function. -
filter
: Thefilter()
method creates a new typed array with all elements that pass the test implemented by the provided function. This method has the same algorithm asArray.prototype.filter()
. TypedArray is one of the typed array types here. -
finally
: Thefinally()
method returns aPromise
. 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 thePromise
has been dealt with . -
find
: Thefind()
method returns a value in the typed array, if an element satisfies the provided testing function. Otherwiseundefined
is returned. TypedArray is one of the typed array types here. -
find
: Thefind()
method returns the value of the first element in the array that satisfies the provided testing function. Otherwiseundefined
is returned. -
findIndex
: ThefindIndex()
method returns an index in the typed array, if an element in the typed array satisfies the provided testing function. Otherwise -1 is returned. -
findIndex
: ThefindIndex()
method returns the index of the first element in the array that satisfies the provided testing function. Otherwise, it returns -1, indicating no element passed the test. -
fixed
: Thefixed()
method creates a<tt>
HTML element that causes a string to be displayed in fixed-pitch font. -
flat
: Theflat()
method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth. -
flatMap
: TheflatMap()
method first maps each element using a mapping function, then flattens the result into a new array. It is identical to a map followed by a flat of depth 1, butflatMap
is often quite useful, as merging both into one method is slightly more efficient. -
floor
: TheMath.floor()
function returns the largest integer less than or equal to a given number. -
fontcolor
: Thefontcolor()
method creates a<font>
HTML element that causes a string to be displayed in the specified font color. -
fontsize
: Thefontsize()
method creates a<font>
HTML element that causes a string to be displayed in the specified font size. -
for
: TheSymbol.for(key)
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. -
forEach
: TheforEach()
method executes a provided function once for each value in theSet
object, in insertion order. -
forEach
: TheforEach()
method executes a provided function once for each array element. -
forEach
: TheforEach()
method executes a provided function once per array element. This method has the same algorithm asArray.prototype.forEach()
. TypedArray is one of the typed array types here. -
forEach
: TheforEach()
method executes a provided function once per each key/value pair in theMap
object, in insertion order. -
format
: TheIntl.RelativeTimeFormat.prototype.format()
method formats avalue
andunit
according to the locale and formatting options of thisRelativeTimeFormat
object. -
format
: TheIntl.NumberFormat.prototype.format()
method formats a number according to the locale and formatting options of thisNumberFormat
object. -
format
: TheIntl.DateTimeFormat.prototype.format()
method formats a date according to the locale and formatting options of thisIntl.DateTimeFormat
object. -
formatToParts
: TheIntl.RelativeTimeFormat.prototype.formatToParts()
method returns anArray
of objects representing the relative time format in parts that can be used for custom locale-aware formatting. -
formatToParts
: TheIntl.Numberformat.prototype.formatToParts()
method allows locale-aware formatting of strings produced byNumberTimeFormat
formatters. -
formatToParts
: TheIntl.DateTimeFormat.prototype.formatToParts()
method allows locale-aware formatting of strings produced byDateTimeFormat
formatters. -
freeze
: TheObject.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. -
from
: TheTypedArray.from()
method creates a new typed array from an array-like or iterable object. This method is nearly the same asArray.from()
. -
from
: TheArray.from()
method creates a new, shallow-copiedArray
instance from an array-like or iterable object. -
fromCharCode
: The staticString.fromCharCode()
method returns a string created from the specified sequence of UTF-16 code units. -
fromCodePoint
: The staticString.fromCodePoint()
method returns a string created by using the specified sequence of code points. -
fromEntries
: TheObject.fromEntries()
method transforms a list of key-value pairs into an object. - 32-bit single precision float representation of a
Number
.
G
-
get
: Theget()
method returns a specified element from aMap
object. -
get
: Thehandler.get()
method is a trap for getting a property value. -
get
: Theget()
prototype method of theWebAssembly.Table()
object retrieves a function reference stored at a given index. -
get
: Theget()
method returns a specified element from aWeakMap
object. -
get
: The staticReflect.get()
method works like getting a property from an object (target[propertyKey]
) as a function. -
get Array[@@species]
: TheArray[@@species]
accessor property returns theArray
constructor. -
getCanonicalLocales
: TheIntl.getCanonicalLocales()
method returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags. -
getDate
: ThegetDate()
method returns the day of the month for the specified date according to local time. -
getDay
: ThegetDay()
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 getDate(). -
getFloat32
: ThegetFloat32()
method gets a signed 32-bit float (float) at the specified byte offset from the start of theDataView
. -
getFloat64
: ThegetFloat64()
method gets a signed 64-bit float (double) at the specified byte offset from the start of theDataView
. -
getFullYear
: ThegetFullYear()
method returns the year of the specified date according to local time. -
getHours
: ThegetHours()
method returns the hour for the specified date, according to local time. -
getInt16
: ThegetInt16()
method gets a signed 16-bit integer (short) at the specified byte offset from the start of theDataView
. -
getInt32
: ThegetInt32()
method gets a signed 32-bit integer (long) at the specified byte offset from the start of theDataView
. -
getInt8
: ThegetInt8()
method gets a signed 8-bit integer (byte) at the specified byte offset from the start of theDataView
. -
getItem
: TheVBArray.getItem
method returns the item at the specified location. -
getMilliseconds
: ThegetMilliseconds()
method returns the milliseconds in the specified date according to local time. -
getMinutes
: ThegetMinutes()
method returns the minutes in the specified date according to local time. -
getMonth
: ThegetMonth()
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). -
getNotifier
: TheObject.getNotifer()
method was used to create an object that allows to synthetically trigger a change, but has been deprecated and removed in browsers. -
getOwnPropertyDescriptor
: TheObject.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. -
getOwnPropertyDescriptor
: The staticReflect
.getOwnPropertyDescriptor()
method is similar toObject.getOwnPropertyDescriptor()
. It returns a property descriptor of the given property if it exists on the object,undefined
otherwise. -
getOwnPropertyDescriptor
: Thehandler.getOwnPropertyDescriptor()
method is a trap forObject.getOwnPropertyDescriptor()
. -
getOwnPropertyDescriptors
: TheObject.getOwnPropertyDescriptors()
method returns all own property descriptors of a given object. -
getOwnPropertyNames
: TheObject.getOwnPropertyNames()
method returns an array of all properties (including non-enumerable properties except for those which use Symbol) found directly in a given object. -
getOwnPropertySymbols
: TheObject.getOwnPropertySymbols()
method returns an array of all symbol properties found directly upon a given object. -
getPrototypeOf
: The staticReflect
.getPrototypeOf()
method is almost the same method asObject.getPrototypeOf()
. It returns the prototype (i.e. the value of the internal[[Prototype]]
property) of the specified object. -
getPrototypeOf
: Thehandler.getPrototypeOf()
method is a trap for the[[GetPrototypeOf]]
internal method. -
getPrototypeOf
: TheObject.getPrototypeOf()
method returns the prototype (i.e. the value of the internal[[Prototype]]
property) of the specified object. -
getSeconds
: ThegetSeconds()
method returns the seconds in the specified date according to local time. -
getTime
: ThegetTime()
method returns the number of milliseconds* since the Unix Epoch. -
getTimezoneOffset
: ThegetTimezoneOffset()
method returns the time zone difference, in minutes, from current locale (host system settings) to UTC. -
getUTCDate
: ThegetUTCDate()
method returns the day (date) of the month in the specified date according to universal time. -
getUTCDay
: ThegetUTCDay()
method returns the day of the week in the specified date according to universal time, where 0 represents Sunday. -
getUTCFullYear
: ThegetUTCFullYear()
method returns the year in the specified date according to universal time. -
getUTCHours
: ThegetUTCHours()
method returns the hours in the specified date according to universal time. -
getUTCMilliseconds
: ThegetUTCMilliseconds()
method returns the milliseconds in the specified date according to universal time. -
getUTCMinutes
: ThegetUTCMinutes()
method returns the minutes in the specified date according to universal time. -
getUTCMonth
: ThegetUTCMonth()
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). -
getUTCSeconds
: ThegetUTCSeconds()
method returns the seconds in the specified date according to universal time. -
getUint16
: ThegetUint16()
method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of theDataView
. -
getUint32
: ThegetUint32()
method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of theDataView
. -
getUint8
: ThegetUint8()
method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of theDataView
. -
getVarDate
: ThegetVarDate
method returns aVT_DATE
value from aDate
object. -
getYear
: ThegetYear()
method returns the year in the specified date according to local time. BecausegetYear()
does not return full years ("year 2000 problem"), it is no longer used and has been replaced by thegetFullYear()
method. -
grow
: Thegrow()
protoype method of theMemory
object increases the size of the memory instance by a specified number of WebAssembly pages. -
grow
: Thegrow()
prototype method of theWebAssembly.Table
object increases the size of the Table instance by a specified number of elements.
H
-
has
: Thehas()
method returns a boolean indicating whether an element with the specified key exists or not. -
has
: Thehandler.has()
method is a trap for thein
operator. -
has
: The staticReflect
.has()
method works like thein
operator as a function. -
has
: Thehas()
method returns a boolean indicating whether an element with the specified value exists in aSet
object or not. -
has
: Thehas()
method returns a boolean indicating whether an element with the specified key exists in theWeakMap
object or not. -
has
: Thehas()
method returns a boolean indicating whether an object exists in aWeakSet
or not. -
hasOwnProperty
: ThehasOwnProperty()
method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it). -
hypot
: TheMath.hypot()
function returns the square root of the sum of squares of its arguments, that is:
I
-
Indexed collections
: This chapter introduces collections of data which are ordered by an index value. This includes arrays and array-like constructs such asArray
objects andTypedArray
objects. -
imports
: TheWebAssembly.imports()
function returns an array containing descriptions of all the declared imports of the givenModule
. -
imul
: TheMath.imul()
function returns the result of the C-like 32-bit multiplication of the two parameters. -
includes
: Theincludes()
method determines whether one string may be found within another string, returningtrue
orfalse
as appropriate. -
includes
: Theincludes()
method determines whether a typed array includes a certain element, returningtrue
orfalse
as appropriate. This method has the same algorithm asArray.prototype.includes()
. TypedArray is one of the typed array types here. -
includes
: Theincludes()
method determines whether an array includes a certain value among its entries, returningtrue
orfalse
as appropriate. -
indexOf
: TheindexOf()
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 asArray.prototype.indexOf()
. TypedArray is one of the typed array types here. -
indexOf
: TheindexOf()
method returns the index within the callingString
object of the first occurrence of the specified value, starting the search atfromIndex
. Returns -1 if the value is not found. -
indexOf
: TheindexOf()
method returns the first index at which a given element can be found in the array, or -1 if it is not present. -
instantiate
: TheWebAssembly.instantiate()
function allows you to compile and instantiate WebAssembly code. This function has two overloads: -
instantiateStreaming
: TheWebAssembly.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. -
is
: TheObject.is()
method determines whether two values are the same value. -
isArray
: TheArray.isArray()
method determines whether the passed value is anArray
. -
isExtensible
: TheObject.isExtensible()
method determines if an object is extensible (whether it can have new properties added to it). -
isExtensible
: The staticReflect
.isExtensible()
method determines if an object is extensible (whether it can have new properties added to it). It is similar toObject.isExtensible()
, but with some differences. -
isExtensible
: Thehandler.isExtensible()
method is a trap forObject.isExtensible()
. -
isFinite
: TheNumber.isFinite()
method determines whether the passed value is a finite number. -
isFrozen
: TheObject.isFrozen()
determines if an object is frozen. -
isInteger
: TheNumber.isInteger()
method determines whether the passed value is an integer. -
isLockFree
: The staticAtomics
.isLockFree()
method is used to determine whether to use locks or atomic operations. It returnstrue
, if the given size is one of the BYTES_PER_ELEMENT property of integer TypedArray types. -
isNaN
: TheisNaN()
function determines whether a value isNaN
or not. Note: coercion inside theisNaN
function has interesting rules; you may alternatively want to useNumber.isNaN()
, as defined in ECMAScript 2015. -
isNaN
: TheNumber.isNaN()
method determines whether the passed value isNaN
and its type isNumber
. It is a more robust version of the original, globalisNaN()
. -
isPrototypeOf
: TheisPrototypeOf()
method checks if an object exists in another object's prototype chain. -
isSafeInteger
: TheNumber.isSafeInteger()
method determines whether the provided value is a number that is a safe integer. -
isSealed
: TheObject.isSealed()
method determines if an object is sealed. -
isView
: TheArrayBuffer.isView()
method returnstrue
ifarg
is one of theArrayBuffer
views, such as typed array objects or aDataView
;false
otherwise. -
italics
: Theitalics()
method creates an<i>
HTML element that causes a string to be italic. -
item
: TheEnumerator.item
method returns the current item in the collection.
J
-
join
: Thejoin()
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. -
join
: Thejoin()
method joins all elements of an array into a string. This method has the same algorithm asArray.prototype.join()
. TypedArray is one of the typed array types here.
K
-
keyFor
: TheSymbol.keyFor(sym)
method retrieves a shared symbol key from the global symbol registry for the given symbol. -
keys
: Thekeys()
method returns a newArray Iterator
object that contains the keys for each index in the array. -
keys
: Thekeys()
method returns a newIterator
object that contains the keys for each element in theMap
object in insertion order. -
keys
: TheObject.keys()
method returns an array of a given object's own propertynames
, in the same order as we get with a normal loop. -
keys
: Thekeys()
method returns a newArray Iterator
object that contains the keys for each index in the array.
L
-
lastIndexOf
: ThelastIndexOf()
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 atfromIndex
. -
lastIndexOf
: ThelastIndexOf()
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 atfromIndex
. This method has the same algorithm asArray.prototype.lastIndexOf()
. TypedArray is one of the typed array types here. -
lastIndexOf
: ThelastIndexOf()
method returns the index within the callingString
object of the last occurrence of the specified value, searching backwards fromfromIndex
. Returns -1 if the value is not found. -
lbound
: The VBArray.lbound method returns the lowest index value used in the specified dimension of a VBArray. -
link
: Thelink()
method creates a string representing the code for an<a>
HTML element to be used as a hypertext link to another URL. -
load
: The staticAtomics
.load()
method returns a value at a given position in the array. -
localeCompare
: ThelocaleCompare()
method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order. -
log
: TheMath.log()
function returns the natural logarithm (basee
) of a number, that is -
log10
: TheMath.log10()
function returns the base 10 logarithm of a number, that is -
log1p
: TheMath.log1p()
function returns the natural logarithm (basee
) of 1 + a number, that is -
log2
: TheMath.log2()
function returns the base 2 logarithm of a number, that is
M
-
map
: Themap()
method creates a new array with the results of calling a provided function on every element in the calling array. -
map
: Themap()
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 asArray.prototype.map()
. TypedArray is one of the typed array types here. -
match
: Thematch()
method retrieves the result of matching a string against a regular expression. -
matchAll
: ThematchAll()
method returns an iterator of all results matching a string against a regular expression, including capturing groups. -
max
: TheMath.max()
function returns the largest of zero or more numbers. -
min
: The static functionMath.min()
returns the lowest-valued number passed into it, orNaN
if any parameter isn't a number and can't be converted into one. -
move
: Themove()
method used to copy the sequence of array elements within the array to the position starting attarget
. However, this non-standard method has been replaced with the standardTypedArray.prototype.copyWithin()
method. TypedArray is one of the typed array types here. -
moveFirst
: The Enumerator.moveFirst method resets the current item in the collection to the first item. -
moveNext
: TheEnumerator.moveNext
method moves the current item to the next item in the collection. -
msTraceAsyncCallbackCompleted
: Thedebug.msTraceAsyncCallbackCompleted
function indicates that an asynchronous operation has completed. -
msTraceAsyncCallbackStarting
: Thedebug.msTraceAsyncCallbackStarting
function associates the callback stack with a previously specified asynchronous operation. -
msTraceAsyncOperationStarting
: Initiates a trace for an asynchronous operation. -
msUpdateAsyncCallbackRelation
: Thedebug.msUpdateAsyncCallbackRelation
function updates the relationship status between a synchronous work item and the associated asynchronous operation.
N
-
next
: Thenext
()
method returns an object with two propertiesdone
andvalue
. You can also provide a parameter to thenext
method to send a value to the generator. -
normalize
: Thenormalize()
method returns the Unicode Normalization Form of a given string (if the value isn't a string, it will be converted to one first). -
notify
: The staticAtomics
.notify()
method notifies up some agents that are sleeping in the wait queue. -
now
: TheDate.now()
method returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
O
-
observe
: TheArray.observe()
method was used for asynchronously observing changes to Arrays, similar toObject.observe()
for objects. It provided a stream of changes in order of occurrence. It's equivalent toObject.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 generalProxy
object instead. -
observe
: TheObject.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 generalProxy
object instead. -
of
: TheArray.of()
method creates a newArray
instance from a variable number of arguments, regardless of number or type of the arguments. -
of
: TheTypedArray.of()
method creates a new typed array from a variable number of arguments. This method is nearly the same asArray.of()
. -
or
: The staticAtomics
.or()
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. -
ownKeys
: Thehandler.ownKeys()
method is a trap forReflect.ownKeys()
. -
ownKeys
: The staticReflect
.ownKeys()
method returns an array of thetarget
object's own property keys.
P
-
padEnd
: ThepadEnd()
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. -
padStart
: ThepadStart()
method pads the current string with another string (multiple times, if needed) until the resulting string reaches the given length. -
parse
: TheDate.parse()
method parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC orNaN
if the string is unrecognized or, in some cases, contains illegal date values (e.g. 2015-02-31). -
parse
: TheJSON.parse()
method parses a JSON string, constructing the JavaScript value or object described by the string. An optional reviver function can be provided to perform a transformation on the resulting object before it is returned. -
parse: bad parsing
:SyntaxError
-
parseFloat
: TheNumber.parseFloat()
method parses a string argument and returns a floating point number. -
parseInt
: TheNumber.parseInt()
method parses a string argument and returns an integer of the specified radix or base. -
pop
: Thepop()
method removes the last element from an array and returns that element. This method changes the length of the array. -
pow
: TheMath.pow()
function returns thebase
to theexponent
power, that is,baseexponent
. -
preventExtensions
: The staticReflect
.preventExtensions()
method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). It is similar toObject.preventExtensions()
, but with some differences. -
preventExtensions
: Thehandler.preventExtensions()
method is a trap forObject.preventExtensions()
. -
preventExtensions
: TheObject.preventExtensions()
method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). -
propertyIsEnumerable
: ThepropertyIsEnumerable()
method returns a Boolean indicating whether the specified property is enumerable. -
prototype[@@iterator]
: The initial value of the @@iterator property is the same function object as the initial value of thevalues
property. -
prototype[@@iterator]
: The[@@iterator]()
method returns a newIterator
object that iterates over the code points of a String value, returning each code point as a String value. -
prototype[@@iterator]
: The initial value of the@@iterator
property is the same function object as the initial value of thevalues()
property. -
prototype[@@iterator]
: The initial value of the@@iterator
property is the same function object as the initial value of thevalues
property. -
prototype[@@iterator]
: The initial value of the@@iterator
property is the same function object as the initial value of theentries
method. -
prototype[@@matchAll]
: The[@@matchAll]
method returns all matches of the regular expression against a string. -
prototype[@@match]
: The[@@match]()
method retrieves the matches when matching a string against a regular expression. -
prototype[@@replace]
: The[@@replace]()
method replaces some or all matches of athis
pattern in a string by areplacement
, and returns the result of the replacement as a new string. Thereplacement
can be a string or a function to be called for each match. -
prototype[@@search]
: The[@@search]()
method executes a search for a match between athis
regular expression and a string. -
prototype[@@split]
: The[@@split]()
method splits aString
object into an array of strings by separating the string into substrings. -
prototype[@@toPrimitive]
: The[@@toPrimitive]()
method converts aDate
object to a primitive value. -
prototype[@@toPrimitive]
: The[@@toPrimitive]()
method converts a Symbol object to a primitive value. -
push
: Thepush()
method adds one or more elements to the end of an array and returns the new length of the array.
Q
-
quote
: The non-standardquote()
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 ("
).
R
-
race
: ThePromise.race()
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. -
random
: TheMath.random()
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. -
raw
: The staticString.raw()
method is a tag function of template literals, similar to ther
prefix in Python or the@
prefix in C# for string literals (yet there is a difference: see explanations in this issue). It's used to get the raw string form of template strings, that is, substitutions (e.g. ${foo}) are processed, but escapes (e.g.\n
) are not. -
reduce
: Thereduce()
method executes a reducer function (that you provide) on each member of the array resulting in a single output value. -
reduce
: Thereduce()
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 asArray.prototype.reduce()
. TypedArray is one of the typed array types here. -
reduceRight
: ThereduceRight()
method applies a function against an accumulator and each value of the array (from right-to-left) to reduce it to a single value. -
reduceRight
: ThereduceRight()
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 asArray.prototype.reduceRight()
. TypedArray is one of the typed array types here. -
reject
: ThePromise.reject()
method returns aPromise
object that is rejected with a given reason. -
repeat
: Therepeat()
method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together. -
replace
: Thereplace()
method returns a new string with some or all matches of apattern
replaced by areplacement
. -
resolve
: ThePromise.resolve()
method returns aPromise
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"then" method
), 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. -
resolvedOptions
: TheIntl.RelativeTimeFormat.prototype.resolvedOptions()
method returns a new object with properties reflecting the locale and relative time formatting options computed during initialization of thisRelativeTimeFormat
object. -
resolvedOptions
: TheIntl.DateTimeFormat.prototype.resolvedOptions()
method returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of thisDateTimeFormat
object. -
resolvedOptions
: TheIntl.NumberFormat.prototype.resolvedOptions()
method returns a new object with properties reflecting the locale and number formatting options computed during initialization of thisNumberFormat
object. -
resolvedOptions
: TheIntl.Collator.prototype.resolvedOptions()
method returns a new object with properties reflecting the locale and collation options computed during initialization of thisCollator
object. -
resolvedOptions
: TheIntl.PluralRules.prototype.resolvedOptions()
method returns a new object with properties reflecting the locale and plural formatting options computed during initialization of thisPluralRules
object. -
return
: Thereturn()
method returns the given value and finishes the generator. -
reverse
: Thereverse()
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 asArray.prototype.reverse()
. TypedArray is one of the typed array types here. -
reverse
: Thereverse()
method reverses an array in place. The first array element becomes the last, and the last array element becomes the first. -
revocable
: TheProxy.revocable()
method is used to create a revocableProxy
object. -
round
: TheMath.round()
function returns the value of a number rounded to the nearest integer.
S
-
ScriptEngine
: TheScriptEngine
function gets the name of the scripting language in use. -
ScriptEngineBuildVersion
: TheScriptEngineBuildVersion
function bets the build version number of the scripting engine in use. -
ScriptEngineMajorVersion
: TheScriptEngineMajorVersion
function gets the major version number of the scripting engine in use. -
ScriptEngineMinorVersion
: TheScriptEngineMinorVersion
function gets the minor version number of the scripting engine in use. -
seal
: TheObject.seal()
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. -
search
: Thesearch()
method executes a search for a match between a regular expression and thisString
object. -
select
: TheIntl.PluralRules.prototype.select
method returns a String indicating which plural rule to use for locale-aware formatting. -
set
: Theset()
method adds or updates an element with a specified key and a value to aMap
object. -
set
: Thehandler.set()
method is a trap for setting a property value. -
set
: The staticReflect
.set()
method works like setting a property on an object. -
set
: Theset()
method stores multiple values in the typed array, reading input values from a specified array. -
set
: Theset()
method adds a new element with a specifiedkey
andvalue
to aWeakMap
object. -
set
: Theset()
prototype method of theWebAssembly.Table
object mutates a reference stored at a given index to a different value. -
setDate
: ThesetDate()
method sets the day of theDate
object relative to the beginning of the currently set month. -
setFloat32
: ThesetFloat32()
method stores a signed 32-bit float (float) value at the specified byte offset from the start of theDataView
. -
setFloat64
: ThesetFloat64()
method stores a signed 64-bit float (double) value at the specified byte offset from the start of theDataView
. -
setFullYear
: ThesetFullYear()
method sets the full year for a specified date according to local time. Returns new timestamp. -
setHours
: ThesetHours()
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 updatedDate
instance. -
setInt16
: ThesetInt16()
method stores a signed 16-bit integer (short) value at the specified byte offset from the start of theDataView
. -
setInt32
: ThesetInt32()
method stores a signed 32-bit integer (long) value at the specified byte offset from the start of theDataView
. -
setInt8
: ThesetInt8()
method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of theDataView
. -
setMilliseconds
: ThesetMilliseconds()
method sets the milliseconds for a specified date according to local time. -
setMinutes
: ThesetMinutes()
method sets the minutes for a specified date according to local time. -
setMonth
: ThesetMonth()
method sets the month for a specified date according to the currently set year. -
setPrototypeOf
: TheObject.setPrototypeOf()
method sets the prototype (i.e., the internal[[Prototype]]
property) of a specified object to another object ornull
. -
setPrototypeOf
: Thehandler.setPrototypeOf()
method is a trap forObject.setPrototypeOf()
. -
setPrototypeOf
: The staticReflect
.setPrototypeOf()
method is the same method asObject.setPrototypeOf()
. It sets the prototype (i.e., the internal[[Prototype]]
property) of a specified object to another object or tonull
. -
setSeconds
: ThesetSeconds()
method sets the seconds for a specified date according to local time. -
setTime
: ThesetTime()
method sets theDate
object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC. -
setUTCDate
: ThesetUTCDate()
method sets the day of the month for a specified date according to universal time. -
setUTCFullYear
: ThesetUTCFullYear()
method sets the full year for a specified date according to universal time. -
setUTCHours
: ThesetUTCHours()
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 updatedDate
instance. -
setUTCMilliseconds
: ThesetUTCMilliseconds()
method sets the milliseconds for a specified date according to universal time. -
setUTCMinutes
: ThesetUTCMinutes()
method sets the minutes for a specified date according to universal time. -
setUTCMonth
: ThesetUTCMonth()
method sets the month for a specified date according to universal time. -
setUTCSeconds
: ThesetUTCSeconds()
method sets the seconds for a specified date according to universal time. -
setUint16
: ThesetUint16()
method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of theDataView
. -
setUint32
: ThesetUint32()
method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of theDataView
. -
setUint8
: ThesetUint8()
method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of theDataView
. -
setYear
: ThesetYear()
method sets the year for a specified date according to local time. BecausesetYear()
does not set full years ("year 2000 problem"), it is no longer used and has been replaced by thesetFullYear()
method. -
shift
: Theshift()
method removes the first element from an array and returns that removed element. This method changes the length of the array. -
sign
: TheMath.sign()
function returns the sign of a number, indicating whether the number is positive, negative or zero. -
sin
: TheMath.sin()
function returns the sine of a number. -
sinh
: TheMath.sinh()
function returns the hyperbolic sine of a number, that can be expressed using the constant e: -
slice
: Theslice()
method extracts a section of a string and returns it as a new string, without modifying the original string. -
slice
: Theslice()
method returns a newArrayBuffer
whose contents are a copy of thisArrayBuffer
's bytes frombegin
, inclusive, up toend
, exclusive. -
slice
: Theslice()
method returns a shallow copy of a portion of a typed array into a new typed array object. This method has the same algorithm asArray.prototype.slice()
. TypedArray is one of the typed array types here. -
slice
: Theslice()
method returns a shallow copy of a portion of an array into a new array object selected frombegin
toend
(end
not included). The original array will not be modified. -
slice
: TheSharedArrayBuffer.prototype.slice()
method returns a newSharedArrayBuffer
whose contents are a copy ofthis SharedArrayBuffer
'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 asArray.prototype.slice()
. -
small
: Thesmall()
method creates a<small>
HTML element that causes a string to be displayed in a small font. -
some
: Thesome()
method tests whether at least one element in the array passes the test implemented by the provided function. -
some
: Thesome()
method tests whether some element in the typed array passes the test implemented by the provided function. This method has the same algorithm asArray.prototype.some()
. TypedArray is one of the typed array types here. -
sort
: Thesort()
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. -
sort
: Thesort()
method sorts the elements of a typed array numerically in place and returns the typed array. This method has the same algorithm asArray.prototype.sort()
, except that sorts the values numerically instead of as strings. TypedArray is one of the typed array types here. -
splice
: Thesplice()
method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place. -
split
: Thesplit()
method splits aString
object into an array of strings by separating the string into substrings, using a specified separator string to determine where to make each split. -
sqrt
: TheMath.sqrt()
function returns the square root of a number, that is -
startsWith
: ThestartsWith()
method determines whether a string begins with the characters of a specified string, returningtrue
orfalse
as appropriate. -
store
: The staticAtomics
.store()
method stores a given value at the given position in the array and returns that value. -
strike
: Thestrike()
method creates a<strike>
HTML element that causes a string to be displayed as struck-out text. -
stringify
: TheJSON.stringify()
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. -
sub
: The staticAtomics
.sub()
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. -
sub
: Thesub()
method creates a<sub>
HTML element that causes a string to be displayed as subscript. -
subarray
: Thesubarray()
method returns a new TypedArray on the sameArrayBuffer
store and with the same element types as for this TypedArray object. Thebegin
offset is inclusive and theend
offset is exclusive. TypedArray is one of the typed array types. -
substr
: Thesubstr()
method returns a portion of the string, starting at the specified index and extending for a given number of characters afterward. -
substring
: Thesubstring()
method returns the part of thestring
between the start and end indexes, or to the end of the string. -
sup
: Thesup()
method creates a<sup>
HTML element that causes a string to be displayed as superscript. -
supportedLocalesOf
: TheIntl.NumberFormat.supportedLocalesOf()
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. -
supportedLocalesOf
: TheIntl.DateTimeFormat.supportedLocalesOf()
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. -
supportedLocalesOf
: TheIntl.Collator.supportedLocalesOf()
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. -
supportedLocalesOf
: TheIntl.PluralRules.supportedLocalesOf()
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. -
supportedLocalesOf
: TheIntl.RelativeTimeFormat.supportedLocalesOf()
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. -
supportedLocalesOf
: TheIntl.ListFormat.supportedLocalesOf()
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.
T
-
tan
: TheMath.tan()
function returns the tangent of a number. -
tanh
: TheMath.tanh()
function returns the hyperbolic tangent of a number, that is -
test
: Thetest()
method executes a search for a match between a regular expression and a specified string. Returnstrue
orfalse
. -
then
: Thethen()
method returns aPromise
. It takes up to two arguments: callback functions for the success and failure cases of thePromise
. -
throw
: Thethrow()
method resumes the execution of a generator by throwing an error into it and returns an object with two propertiesdone
andvalue
. -
toArray
: TheVBArray.toArray
method returns a standard JavaScript array converted from a VBArray. -
toDateString
: ThetoDateString()
method returns the date portion of aDate
object in human readable form in American English. -
toExponential
: ThetoExponential()
method returns a string representing the Number object in exponential notation. -
toFixed
: ThetoFixed()
method formats a number using fixed-point notation. -
toGMTString
: ThetoGMTString()
method converts a date to a string, using Internet Greenwich Mean Time (GMT) conventions. The exact format of the value returned bytoGMTString()
varies according to the platform and browser, in general it should represent a human readable date string. -
toISOString
: ThetoISOString()
method returns a string in simplified extended ISO format (ISO 8601), which is always 24 or 27 characters long (YYYY-MM-DDTHH:mm:ss.sssZ
or±YYYYYY-MM-DDTHH:mm:ss.sssZ
, respectively). The timezone is always zero UTC offset, as denoted by the suffix "Z
". -
toInteger
: TheNumber.toInteger()
method used to evaluate the passed value and convert it to an integer, but its implementation has been removed. -
toJSON
: ThetoJSON()
method returns a string representation of theDate
object. -
toLocaleDateString
: ThetoLocaleDateString()
method returns a string with a language sensitive representation of the date portion of this date. The newlocales
andoptions
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 thelocales
andoptions
arguments, the locale used and the form of the string returned are entirely implementation dependent. -
toLocaleFormat
: The non-standardtoLocaleFormat()
method converts a date to a string using the specified formatting.Intl.DateTimeFormat
is an alternative to format dates in a standards-compliant way. See also the newer version ofDate.prototype.toLocaleDateString()
. -
toLocaleLowerCase
: ThetoLocaleLowerCase()
method returns the calling string value converted to lower case, according to any locale-specific case mappings. -
toLocaleString
: ThetoLocaleString()
method returns a string with a language sensitive representation of this date. The newlocales
andoptions
arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore thelocales
andoptions
arguments, the locale used and the form of the string returned are entirely implementation dependent. -
toLocaleString
: ThetoLocaleString()
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 asArray.prototype.toLocaleString()
and, as the typed array elements are numbers, the same algorithm asNumber.prototype.toLocaleString()
applies for each element. TypedArray is one of the typed array types here. -
toLocaleString
: ThetoLocaleString()
method returns a string with a language-sensitive representation of this number. -
toLocaleString
: ThetoLocaleString()
method returns a string representing the elements of the array. The elements are converted to Strings using theirtoLocaleString
methods and these Strings are separated by a locale-specific String (such as a comma “,”). -
toLocaleString
: ThetoLocaleString()
method returns a string representing the object. This method is meant to be overridden by derived objects for locale-specific purposes. -
toLocaleTimeString
: ThetoLocaleTimeString()
method returns a string with a language sensitive representation of the time portion of this date. The newlocales
andoptions
arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore thelocales
andoptions
arguments, the locale used and the form of the string returned are entirely implementation dependent. -
toLocaleUpperCase
: ThetoLocaleUpperCase()
method returns the calling string value converted to upper case, according to any locale-specific case mappings. -
toLowerCase
: ThetoLowerCase()
method returns the calling string value converted to lower case. -
toPrecision
: ThetoPrecision()
method returns a string representing theNumber
object to the specified precision. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toSource
: ThetoSource()
method returns a string representing the source code of the array. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toSource
: ThetoSource()
method returns code that could eval to the same error. -
toSource
: ThetoSource()
method returns a string representing the source code of the object. -
toString
: ThetoString()
method returns a string representing the specified array and its elements. -
toString
: ThetoString()
method returns a string representing the specified array and its elements. This method has the same algorithm asArray.prototype.toString()
. TypedArray is one of the typed array types here. -
toString
: ThetoString()
method returns a string representing the source code of the function. -
toString
: ThetoString()
method returns a string representing the specifiedError
object. -
toString
: ThetoString()
method returns a string representing the regular expression. -
toString
: ThetoString()
method returns a string representing the specifiedSymbol
object. -
toString
: ThetoString()
method returns a string representing the specifiedDate
object. -
toString
: ThetoString()
method returns a string representing the specified Boolean object. -
toString
: ThetoString()
method returns a string representing the object. -
toString
: ThetoString()
method returns a string representing the specified object. -
toString
: ThetoString()
method returns a string representing the specifiedNumber
object. -
toTimeString
: ThetoTimeString()
method returns the time portion of aDate
object in human readable form in American English. -
toUTCString
: ThetoUTCString()
method converts a date to a string, using the UTC time zone. -
toUpperCase
: ThetoUpperCase()
method returns the calling string value converted to uppercase (the value will be converted to a string if it isn't one). -
transfer
: The staticArrayBuffer.transfer()
method returns a newArrayBuffer
whose contents have been taken from theoldBuffer
's data and then is either truncated or zero-extended bynewByteLength
. IfnewByteLength
isundefined
, thebyteLength
of theoldBuffer
is used. This operation leavesoldBuffer
in a detached state. -
trim
: Thetrim()
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.). -
trimEnd
: ThetrimEnd()
method removes whitespace from the end of a string.trimRight()
is an alias of this method. -
trimStart
: ThetrimStart()
method removes whitespace from the beginning of a string.trimLeft()
is an alias of this method. -
trunc
: TheMath.trunc()
function returns the integer part of a number by removing any fractional digits.
U
-
UTC
: TheDate.UTC()
method accepts the same parameters as theDate
constructor, but treats them as UTC. It returns the number of milliseconds since January 1, 1970, 00:00:00 UTC. -
ubound
: TheVBArray.ubound
method returns the highest index value used in the specified dimension of the VBArray. -
unobserve
: The Array.unobserve() method was used to remove observers set byArray.observe()
, but has been deprecated and removed from Browsers. You can use the more generalProxy
object instead. -
unobserve
: TheObject.unobserve()
method was used to remove observers set byObject.observe()
, but has been deprecated and removed from Browsers. You can use the more generalProxy
object instead. -
unshift
: Theunshift()
method adds one or more elements to the beginning of an array and returns the new length of the array. -
unwatch
: Theunwatch()
method removes a watchpoint set with thewatch()
method.
V
-
validate
: TheWebAssembly.validate()
function validates a given typed array of WebAssembly binary code, returning whether the bytes form a valid wasm module (true
) or not (false
). -
valueOf
: ThevalueOf()
method returns the primitive value of aDate
object. -
valueOf
: ThevalueOf()
method returns the wrapped primitive value of aNumber
object. -
valueOf
: ThevalueOf()
method returns the primitive value of the specified object. -
valueOf
: ThevalueOf()
method returns the primitive value of aBoolean
object. -
valueOf
: ThevalueOf()
method returns the primitive value of aString
object. -
valueOf
: ThevalueOf()
method returns the primitive value of a Symbol object. -
values
: Thevalues()
method returns a newIterator
object that contains the values for each element in theSet
object in insertion order. -
values
: Thevalues()
method returns a new Iterator object that contains the values for each element in theMap
object in insertion order. -
values
: Thevalues()
method returns a newArray Iterator
object that contains the values for each index in the array. -
values
: Thevalues()
method returns a newArray Iterator
object that contains the values for each index in the array. -
values
: TheObject.values()
method returns an array of a given object's own enumerable property values, in the same order as that provided by afor...in
loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
W
-
wait
: The staticAtomics
.wait()
method verifies that a given position in anInt32Array
still contains a given value and if so sleeps, awaiting a wakeup or a timeout. It returns a string which is either"ok"
,"not-equal"
, or"timed-out"
. -
watch
: Thewatch()
method watches for a property to be assigned a value and runs a function when that occurs. -
write
: Thedebug.write
function sends strings to the script debugger. -
writeln
: Thedebug.writeln
function sends strings to the script debugger, followed by a newline character.
X
-
xor
: The staticAtomics
.xor()
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.
Y
Z
_
-
__defineGetter__
: The__defineGetter__
method binds an object's property to a function to be called when that property is looked up. -
__defineSetter__
: The__defineSetter__
method binds an object's property to a function to be called when an attempt is made to set that property. -
__lookupGetter__
: The__lookupGetter__
method returns the function bound as a getter to the specified property. -
__lookupSetter__
: The__lookupSetter__
method returns the function bound as a setter to the specified property.