Esta traducción está incompleta. Por favor, ayuda a traducir este artículo del inglés.
This article entails a listing of all JavaScript methods documented on MDN sorted alphabetically.
Found 340 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 arccosine of a number, that is -
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(iterable)
method returns a promise that resolves when all of the promises in the iterable argument have resolved. -
anchor
: Theanchor()
method creates an<a>
HTML anchor element that is used as a hypertext target. -
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. -
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 the numeric Unicode value of the character at the given index (except for unicode codepoints > 0x10000). -
clear
: Theclear()
method removes all elements from aWeakMap
object. -
clear
: Theclear()
method removes all elements from aWeakSet
object. -
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 UTF-16 encoded code point value. -
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 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. -
concat
: Theconcat()
method combines the text of two or more strings and returns a new string. -
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. This method has the same algorithm asArray.prototype.copyWithin
. TypedArray is one of the typed array types here. -
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. -
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
: 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 aMap
object. -
delete
: Thedelete()
method removes the specified element from aSet
object. -
delete
: Thedelete()
method removes the specified element from aWeakMap
object. -
delete
: Thedelete()
method removes the specified element from aWeakSet
object. -
deleteProperty
: Thehandler.deleteProperty()
method is a trap for thedelete
operator.
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 newIterator
object that contains the[key, value]
pairs for each element in theMap
object in insertion order. -
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 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. -
enumerate
: Thehandler.enumerate()
method is a trap forfor...in
statements. -
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. -
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 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.
F
-
fill
: Thefill()
method fills all the elements of an array from a start index to an end index with a static value. -
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. -
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 array, if an element in the array satisfies the provided testing function. Otherwiseundefined
is returned. -
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. -
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 an index in the array, if an element in the 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. -
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. 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 value in theSet
object, in insertion order. -
freeze
: TheObject.freeze()
method freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed. In essence the object is made effectively immutable. The method returns the object being frozen. -
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. -
fround
: TheMath.fround()
function returns the nearest single precision float representation of a number.
G
-
get
: Theget()
method returns a specified element from aWeakMap
object. -
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). -
getOwnPropertyDescriptor
: Thehandler.getOwnPropertyDescriptor()
method is a trap forObject.getOwnPropertyDescriptor()
. -
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. -
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
: 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 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.
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
: 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
: TheObject.isExtensible()
method determines if an object is extensible (whether it can have new properties added to it). -
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. -
isGenerator
: TheisGenerator()
method determines whether or not a function is a generator. -
isInteger
: TheNumber.isInteger()
method determines whether the passed value is an integer. -
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 a view 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 index within the callingString
object of the last occurrence of the specified value, or -1 if not found. The calling string is searched backward, 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. -
link
: Thelink()
method creates an<a>
HTML element that causes a string to be displayed as a hypertext link to another URL. -
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
: TheMath.max()
function returns the largest of zero or more numbers. -
min
: TheMath.min()
function returns the smallest of zero or more numbers. -
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.
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). -
now
: TheDate.now()
method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
O
-
observe
: TheArray.observe()
method is used for asynchronously observing changes to Arrays, similar toObject.observe()
for objects. It provides a stream of changes in order of occurrence. It's equivalent toObject.observe()
invoked with the accept type list["add", "update", "delete", "splice"]
. -
observe
: TheObject.observe()
method is used for asynchronously observing the changes to an object. It provides a stream of changes in the order in which they occur. -
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()
. -
ownKeys
: Thehandler.ownKeys()
method is a trap forObject.getOwnPropertyNames()
.
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. -
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()
. -
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 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 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. -
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 strings, like ther
prefix in Python or the@
prefix in C# for string literals, this function is used to get the raw string form of template strings. -
reduce
: Thereduce()
method applies a function against an accumulator and each value of the array (from left-to-right) has to reduce it to a single 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 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. -
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.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. -
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. -
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 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
-
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. -
set
: Theset()
method adds a new element with a specifiedkey
andvalue
to aWeakMap
object. -
set
: Theset()
method adds a new element with a specifiedkey
andvalue
to aMap
object. -
set
: Thehandler.set()
method is a trap for setting a property value. -
set
: Theset()
method stores multiple values in the typed array, reading input values from a specified array. -
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. -
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
: Thehandler.setPrototypeOf()
method is a trap forObject.setPrototypeOf()
. -
setPrototypeOf
: TheObject.setPrototypeOf()
method sets the prototype (i.e., the internal[[Prototype]]
property) of a specified object to another object ornull
. -
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. -
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 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 extracts a section of a string and returns a new 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 an array into a new array object. -
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 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. -
some
: Thesome()
method tests whether some element in the array passes the test implemented by the provided function. -
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. -
splice
: Thesplice()
method changes the content of an array by removing existing elements and/or adding new elements. -
split
: Thesplit()
method splits aString
object into an array of strings by separating the string into substrings. -
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. -
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
: 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 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.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.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.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.
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, both are 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 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 object. This method is meant to be overriden by derived objects for locale-specific purposes. -
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 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 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. -
toString
: ThetoString()
method returns a string representing the specified array and its elements. -
toString
: ThetoString()
method returns a string representing the specifiedError
object. -
toString
: ThetoString()
method returns a string representing object. -
toString
: ThetoString()
method returns a string representing the specified Boolean object. -
toString
: ThetoString()
method returns a string representing the source code of the function. -
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 object. -
toString
: ThetoString()
method returns a string representing the specifiedNumber
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()
removes whitespace from the left end of the string. -
trimRight
: ThetrimRight()
method removes whitespace from the right end of the 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. -
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
: ThevalueOf()
method returns the primitive value of aBoolean
object. -
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 aString
object. -
valueOf
: ThevalueOf()
method returns the primitive value of a Symbol object. -
values
: Thevalues()
method returns a newArray Iterator
object that contains the values for each index in the array. -
values
: Thevalues()
method returns a newIterator
object that contains the values for each element in theMap
object in insertion order. -
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.
W
-
watch
: Thewatch()
method watches for a property to be assigned a value and runs a function when that occurs.
X
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
Etiquetas y colaboradores del documento
Colaboradores en esta página:
FirstRays1988
Última actualización por:
FirstRays1988,