This article entails a listing of all JavaScript methods documented on MDN sorted alphabetically.
Found 424 pages with the tag "Method":
A
-
abs
: TheMath.abs()
function returns the absolute value of a number, that is -
abs
: The staticSIMD.%type%.abs()
method returns a new SIMD data type with absolute values. This operation exists only on floating point SIMD types. -
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
: The staticSIMD.%type%.add()
method returns a new instance with the lane values added (a + b
). -
add
: Theadd()
method appends a new element with a specifiedvalue
to the end of aSet
object. -
addSaturate
: The staticSIMD.%type%.addSaturate()
method returns a new instance with the lane values added (a + b
) and saturating behavior on overflow. -
all
: ThePromise.all(iterable)
method returns a promise that resolves when all of the promises in the iterable argument have resolved, or rejects with the reason of the first passed promise that rejects. -
allTrue
: The staticSIMD.%BooleanType%.allTrue()
method returns aBoolean
indicating whether or not all lanes hold atrue
value. -
anchor
: Theanchor()
method creates an<a>
HTML anchor element that is used as a hypertext target. -
and
: The staticSIMD.%type%.and()
method returns a new instance with the logical AND of the lane values (a & b
). This operation exists only on integer and boolean SIMD types. -
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. -
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. -
atan
: TheMath.atan()
function returns the arctangent (in radians) of a number, that is -
atan2
: TheMath.atan2()
function returns the arctangent of the quotient of its arguments. -
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)
. -
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
: ThecharAt()
method returns the specified character from a string. -
charCodeAt
: ThecharCodeAt()
method returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index (the UTF-16 code unit matches the Unicode code point for code points representable in a single UTF-16 code unit, but might also be the first code unit of a surrogate pair for code points not representable in a single UTF-16 code unit, e.g. Unicode code points > 0x10000). If you want the entire code point value, usecodePointAt
(). -
check
: The staticSIMD.%type%.check()
method returns a SIMD data type if the parameter is a valid SIMD data type and the same as%type%
. Otherwise, aTypeError
is thrown. -
clear
: Theclear()
method used to remove all elements from aWeakMap
object, but is no longer part of ECMAScript and its implementations. -
clear
: Theclear()
method used to remove all elements from aWeakSet
object, but is no longer part of ECMAScript and its implementations. -
clear
: Theclear()
method removes all elements from aMap
object. -
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. -
compareExchange
: The staticAtomics
.compareExchange()
method exchanges a given replacement value at a given position in the array, and returns the old value at that position, if a given expected value equals the old value. This atomic operation guarantees that no other write happens until the modified value is written back. -
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. -
concat
: Theconcat()
method combines the text of two or more strings and returns a new string. -
concat
: Theconcat()
method returns a new array comprised of the array on which it is called joined with the array(s) and/or value(s) provided as arguments. -
construct
: The staticReflect
.construct()
method acts like thenew
operator as a function. It is equivalent to callingnew target(...args)
. -
construct
: Thehandler.construct()
method is a trap for thenew
operator. -
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. -
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()
function returns the cosine of a number. -
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 with the specified prototype object and properties.
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
: TheObject.defineProperty()
method 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 aWeakMap
object. -
delete
: Thedelete()
method removes the specified element from aMap
object. -
delete
: Thedelete()
method removes the specified element from aSet
object. -
delete
: Thedelete()
method removes the specified element from aWeakSet
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. -
div
: The staticSIMD.%type%.div()
method returns a new instance with the lane values divided (a / b
). This function is defined only on floating point SIMD types.
E
-
endsWith
: TheendsWith()
method determines whether a string ends with the characters of another 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 newIterator
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 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). -
enumerate
: Thehandler.enumerate()
method used to be a trap forfor...in
statements, but has been removed from the ECMAScript standard in edition 7 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 from the ECMAScript standard in edition 7 and is deprecated in browsers. -
equal
: The staticSIMD.%type%.equal()
method returns a selection mask with values depending on a strict equality comparison (a === b
) in each lane. -
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 exchanges 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. -
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. -
extractLane
: The staticSIMD.%type%.extractLane()
method returns the value of a given lane.
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 all the elements of an array from a start index to an end index with a static value. -
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. -
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 a value in the array, if an element in the array satisfies the provided testing function. Otherwiseundefined
is returned. -
findIndex
: ThefindIndex()
method returns an index in the array, if an element in the array satisfies the provided testing function. Otherwise -1 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. -
fixed
: Thefixed()
method creates a<tt>
HTML element that causes a string to be displayed in fixed-pitch font. -
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 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. -
forEach
: TheforEach()
method executes a provided function once per array element. -
forEach
: TheforEach()
method executes a provided function once per each value in theSet
object, in insertion order. -
freeze
: Technical review completed. -
from
: TheArray.from()
method creates a newArray
instance from an array-like or iterable object. -
from
: TheTypedArray.from()
method creates a new typed array from an array-like or iterable object. This method is nearly the same asArray.from()
. -
fromCharCode
: The staticString.fromCharCode()
method returns a string created by using the specified sequence of Unicode values. -
fromCodePoint
: The staticString.fromCodePoint()
method returns a string created by using the specified sequence of code points. -
fromFloat32x4
: The staticSIMD.%type%.fromFloat32x4()
method creates a new SIMD data type with a float conversion from a Float32x4. -
fromFloat32x4Bits
: The staticSIMD.%type%.fromFloat32x4Bits()
method creates a new SIMD data type with a bit-wise copy from a Float32x4. -
fromFloat64x2Bits
: The staticSIMD.%type%.fromFloat64x2Bits()
method creates a new SIMD data type with a bit-wise copy from a Float64x2. -
fromInt16x8Bits
: The staticSIMD.%type%.fromInt16x8Bits()
method creates a new SIMD data type with a bit-wise copy from an int16x8. -
fromInt32x4
: The staticSIMD.%type%.fromInt32x4()
method creates a new SIMD data type with a float conversion from an Int32x4. -
fromInt32x4Bits
: The staticSIMD.%type%.fromInt32x4Bits()
method creates a new SIMD data type with a bit-wise copy from an Int32x4. -
fromInt8x16Bits
: The staticSIMD.%type%.fromInt8x16Bits()
method creates a new SIMD data type with a bit-wise copy from an Int8x16. -
fromUint16x8Bits
: The staticSIMD.%type%.fromUint16x8Bits()
method creates a new SIMD data type with a bit-wise copy from a Uint16x8. -
fromUint32x4
: The staticSIMD.%type%.fromUint32x4()
method creates a new SIMD data type with a conversion from a Uint32x4. -
fromUint32x4Bits
: The staticSIMD.%type%.fromUint32x4Bits()
method creates a new SIMD data type with a bit-wise copy from a Uint32x4. -
fromUint8x16Bits
: The staticSIMD.%type%.fromUint8x16Bits()
method creates a new SIMD data type with a bit-wise copy from a Uint8x16. -
fround
: TheMath.fround()
function returns the nearest single precision float representation of a number. -
futexWait
: The staticAtomics
.futexWait()
method verifies that a given position in anInt32Array
still contains a given value and sleeps awaiting or times out. It returns one of the Atomic value propertiesOK
,NOTEQUAL
, orTIMEDOUT
. -
futexWake
: The staticAtomics
.futexWake()
method wakes up some agents that are sleeping in the wait queue. -
futexWakeOrRequeue
: The staticAtomics
.futexWakeOrRequeue()
method wakes up some agents that are sleeping in the wait queue and moves other waiting agents to the back of the queue.
G
-
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
: Thehandler.get()
method is a trap for getting a property value. -
get
: Theget()
method returns a specified element from aMap
object. -
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. -
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
. -
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, not present by dint of being along an object's prototype chain) of a given object. -
getOwnPropertyDescriptor
: Thehandler.getOwnPropertyDescriptor()
method is a trap forObject.getOwnPropertyDescriptor()
. -
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. -
getOwnPropertyNames
: TheObject.getOwnPropertyNames()
method returns an array of all properties (enumerable or not) found directly upon 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 the same method asObject.getPrototypeOf()
. It returns the prototype (i.e. the value of the internal[[Prototype]]
property) of the specified object. -
getPrototypeOf
: TheObject.getPrototypeOf()
method 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. -
getSeconds
: ThegetSeconds()
method returns the seconds in the specified date according to local time. -
getTime
: ThegetTime()
method returns the numeric value corresponding to the time for the specified date according to universal time. -
getTimezoneOffset
: ThegetTimezoneOffset()
method returns the time-zone offset from UTC, in minutes, for the current locale. -
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
. -
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. -
greaterThan
: The staticSIMD.%type%.greaterThan()
method returns a selection mask with values depending on a greater-than comparison (a > b
) in each lane. -
greaterThanOrEqual
: The staticSIMD.%type%.greaterThanOrEqual()
method returns a selection mask with values depending on a greater-than-or-equal comparison (a >= b
) in each lane.
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. -
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. -
imul
: TheMath.imul()
function returns the result of the C-like 32-bit multiplication of the two parameters. -
includes
: Theincludes()
method determines whether an array includes a certain element, 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 one string may be found within another string, returningtrue
orfalse
as appropriate. -
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. -
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. -
is
: TheObject.is()
method determines whether two values are the same value. -
isArray
: TheArray.isArray()
method returnstrue
if an object is an array,false
if it is not. -
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()
. -
isExtensible
: TheObject.isExtensible()
method determines if an object is extensible (whether it can have new properties added to it). -
isFinite
: TheNumber.isFinite()
method determines whether the passed value is a finite number. -
isFrozen
: TheObject.isFrozen()
determines if an object is frozen. -
isGenerator
: TheisGenerator()
method determines whether or not a function is a generator. -
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
: TheNumber.isNaN()
method determines whether the passed value isNaN
. More robust version of the original globalisNaN()
. -
isPrototypeOf
: TheisPrototypeOf()
method tests for an object in another object's prototype chain. -
isSafeInteger
: TheNumber.isSafeInteger()
method determines whether the provided value is a number that is a safe integer. A safe integer is an integer that -
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.
J
-
join
: Thejoin()
method joins all elements of an array into a string. -
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
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 enumerable properties, 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). -
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. -
lessThan
: The staticSIMD.%type%.lessThan()
method returns a selection mask with values depending on a less-than comparison (a < b
) in each lane. -
lessThanOrEqual
: The staticSIMD.%type%.lessThanOrEqual()
method returns a selection mask with values depending on a less-than-or-equal comparison (a <= b
) in each lane. -
link
: Thelink()
method creates an<a>
HTML element that causes a string to be displayed as a hypertext link to another URL. -
load
: The staticAtomics
.load()
method returns a value at a given position in the array. This atomic operation guarantees that no other read happens until the modified value is read back. -
load
: The staticSIMD.%type%.load()
methods create a new SIMD data type with the lane values loaded from a typed 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 this 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 matches when matching a string against a regular expression. -
max
: The staticSIMD.%type%.max()
method returns a new instance with the maximum lane values of two SIMD types (Math.max(a, b)
). -
max
: TheMath.max()
function returns the largest of zero or more numbers. -
maxNum
: The staticSIMD.%type%.maxNum()
method returns a new instance with the maximum lane values of two SIMD types (Math.max(a, b)
) preferring numbers overNaN
. -
min
: TheMath.min()
function returns the smallest of zero or more numbers. -
min
: The staticSIMD.%type%.min()
method returns a new instance with the minimum lane values of two SIMD types (Math.min(a, b)
). -
minNum
: The staticSIMD.%type%.minNum()
method returns a new instance with the minimum lane values of two SIMD types (Math.min(a, b)
) preferring numbers overNaN
. -
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. -
mul
: The staticSIMD.%type%.mul()
method returns a new instance with the lane values multiplied (a * b
).
N
-
neg
: The staticSIMD.%type%.mul()
method returns a new instance with the lane values negated. -
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). -
not
: The staticSIMD.%type%.not()
method returns a new instance with the bitwise logical NOT of the lane values (~a
). This operation exists only on integer and boolean SIMD types. -
notEqual
: The staticSIMD.%type%.notEqual()
method returns a selection mask with values depending on an inequality comparison (a != b
) in each lane. -
now
: TheDate.now()
method returns the number of milliseconds elapsed since 1 January 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 with a variable number of arguments, regardless of number or type of the arguments. -
of
: TheTypedArray.of()
method creates a new typed array with 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. -
or
: The staticSIMD.%type%.or()
method returns a new instance with the logical OR of the lane values (a | b
). This operation exists only on integer and boolean SIMD types. -
ownKeys
: Thehandler.ownKeys()
method is a trap forObject.getOwnPropertyNames()
. -
ownKeys
: The staticReflect
.ownKeys()
method returns an array of thetarget
object's own property keys.
P
-
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 unrecognised or, in some cases, contains illegal date values (e.g. 2015-02-31). -
parse
: TheJSON.parse()
method parses a string as JSON, optionally transforming the value produced by parsing. -
parseFloat
: TheNumber.parseFloat()
method parses a string argument and returns a floating point number. This method behaves identically to the global functionparseFloat()
and is part of ECMAScript 6 (its purpose is modularization of globals). -
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. -
pow
: TheMath.pow()
function returns thebase
to theexponent
power, that is,baseexponent
. -
preventExtensions
: TheObject.preventExtensions()
method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). -
preventExtensions
: Thehandler.preventExtensions()
method is a trap forObject.preventExtensions()
. -
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. -
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 initial value of the@@iterator
property is the same function object as the initial value of theentries
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[@@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[@@toPrimitive]
: The[@@toPrimitive]()
method converts a Symbol object to a primitive value. -
prototype[@@toPrimitive]
: The[@@toPrimitive]()
method converts aDate
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(iterable)
method returns a promise that resolves or rejects as soon as one of the promises in the 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)
that is, from 0 (inclusive) up to but not including 1 (exclusive), 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. It's used to get the raw string form of template strings (that is, the original, uninterpreted text). -
reciprocalApproximation
: The staticSIMD.%type%.reciprocalApproximation()
method returns a new instance with an approximation of the reciprocal lane values (1 / x
). -
reciprocalSqrtApproximation
: The staticSIMD.%type%.reciprocalSqrtApproximation()
method returns a new instance with an approximation of the reciprocal value (1 / x
) of the square root (Math.sqrt()
) of the lane values. -
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. -
reduce
: Thereduce()
method applies a function against an accumulator and each value of the array (from left-to-right) 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. -
reduceRight
: ThereduceRight()
method applies a function against an accumulator and each value of the array (from right-to-left) has to reduce it to a single value. -
reject
: ThePromise.reject(reason)
method returns aPromise
object that is rejected with the 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
. Thepattern
can be a string or aRegExp
, and thereplacement
can be a string or a function to be called for each match. -
replaceLane
: The staticSIMD.%type%.replaceLane()
method returns a new SIMD data type with the given lane value replaced. -
resolve
: ThePromise.resolve(value)
method returns aPromise
object that is resolved with the given value. If the value is a thenable (i.e. has athen
method), the returned promise will "follow" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value. -
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.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.Collator.prototype.resolvedOptions()
method returns a new object with properties reflecting the locale and collation options computed during initialization of thisCollator
object. -
return
: Thereturn()
method returns the given value and finishes the generator. -
reverse
: Thereverse()
method reverses an array in place. The first array element becomes the last and the last becomes the first. -
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. -
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
-
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
: The staticSIMD.%type%.select()
method creates a new integer SIMD data type with the lane values being a selection match from a selector mask. -
set
: Theset()
method adds a new element with a specifiedkey
andvalue
to aMap
object. -
set
: Theset()
method stores multiple values in the typed array, reading input values from a specified array. -
set
: The staticReflect
.set()
method works like setting a property on an object. -
set
: Thehandler.set()
method is a trap for setting a property value. -
set
: Theset()
method adds a new element with a specifiedkey
andvalue
to aWeakMap
object. -
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 1 January 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 1 January 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 element. This method changes the length of the array. -
shiftLeftByScalar
: The staticSIMD.%type%.shiftLeftByScalar()
method returns a new instance with the lane values shifted left by a given bit count (a << bits
). -
shiftRightByScalar
: The staticSIMD.%type%.shiftRightByScalar()
method returns a new instance with the lane values shifted right. Depending on the type, these operations are used: -
shuffle
: The staticSIMD.%type%.shuffle()
method creates a new SIMD data type instance with the lane values shuffled. -
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 returns a shallow copy of a portion of an array into a new array object. -
slice
: Theslice()
method extracts a section of a string and returns a new string. -
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 newArrayBuffer
whose contents are a copy of thisArrayBuffer
's bytes frombegin
, inclusive, up toend
, exclusive. -
small
: Thesmall()
method creates a<small>
HTML element that causes a string to be displayed in a small font. -
some
: Thesome()
method tests whether some 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 a typed array in place and returns the typed array. This method has the same algorithm asArray.prototype.sort()
. 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 sort is not necessarily stable. The default sort order is according to string Unicode code points. -
splat
: The staticSIMD.%type%.splat()
method creates a new SIMD data type with all lanes set to a given value. -
splice
: Thesplice()
method changes the content of an array by removing existing elements and/or adding new elements. -
split
: Technical review completed. -
sqrt
: The staticSIMD.%type%.sqrt()
method returns a new instance with the square root of the lane values (see alsoMath.sqrt()
for the same scalar function). -
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 another string, returningtrue
orfalse
as appropriate. -
store
: The staticSIMD.%type%.store()
methods store a SIMD data type into a typed array. -
store
: The staticAtomics
.store()
method stores a given value at the given position in the array and returns that value. This atomic operation guarantees that no other write happens until the modified value is written back. -
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 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 staticSIMD.%type%.sub()
method returns a new instance with the lane values subtracted (a - b
). -
sub
: Thesub()
method creates a<sub>
HTML element that causes a string to be displayed as subscript. -
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. -
subSaturate
: The staticSIMD.%type%.subSaturate()
method returns a new instance with the lane values subtracted (a - b
) and saturating behavior on overflow. -
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 the characters in a string beginning at the specified location through the specified number of characters. -
substring
: Thesubstring()
method returns a subset of astring
between one index and another, or through 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. -
swizzle
: The staticSIMD.%type%.swizzle()
method creates a new SIMD data type instance with the lane values swizzled (re-ordered).
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 two arguments: callback functions for the success and failure cases of thePromise
. -
throw
: Thethrow()
method throws an error to a generator. -
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 characters long:YYYY-MM-DDTHH:mm:ss.sssZ
. 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 representing the object. This method is meant to be overridden by derived objects for locale-specific purposes. -
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 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 with a language sensitive representation of this number. -
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 lowercase. -
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 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. -
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
: The non-standardSIMD.%type%.toSource()
method returns a string representing the source code of the object. -
toString
: ThetoString()
method returns a string representing object. -
toString
: ThetoString()
method returns a string representing the specifiedError
object. -
toString
: ThetoString()
method returns a string representing the source code of the function. -
toString
: ThetoString()
method returns a string representing the specifiedNumber
object. -
toString
: ThetoString()
method returns a string representing the specifiedDate
object. -
toString
: ThetoString()
method returns a string representing the regular expression. -
toString
: ThetoString()
method returns a string representing the specified Boolean object. -
toString
: ThetoString()
method returns a string representing the specified array and its elements. -
toString
: ThetoString()
method returns a string representing the specified object. -
toString
: ThetoString()
method returns a string representing the specified Symbol 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. -
transfer
: The staticArrayBuffer.transfer()
method returns a newArrayBuffer
whose contents are 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.). -
trimLeft
: ThetrimLeft()
method removes whitespace from the left end of a string. -
trimRight
: ThetrimRight()
method removes whitespace from the right end of a string. -
trunc
: TheMath.trunc()
function returns the integral part of a number by removing any fractional digits.
U
-
UTC
: TheDate.UTC()
method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in aDate
object since January 1, 1970, 00:00:00, universal time. -
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
-
valueOf
: Technical review completed. -
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 aBoolean
object. -
valueOf
: ThevalueOf()
method returns the primitive value of aString
object. -
valueOf
: ThevalueOf()
method returns the primitive value of a Symbol object. -
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). -
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 newArray Iterator
object that contains the values for each index in the array. -
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.
W
-
watch
: Thewatch()
method watches for a property to be assigned a value and runs a function when that occurs.
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. -
xor
: The staticSIMD.%type%.xor()
method returns a new instance with the logical XOR of the lane values (a ^ b
).
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.
See also
Document Tags and Contributors
Tags:
Contributors to this page:
fscholz,
sidgan,
jXavier,
SphinxKnight,
Sevenspade,
NickolayBot,
Dria,
Prodoc
Last updated by:
fscholz,