repo_id stringlengths 22 103 | file_path stringlengths 41 147 | content stringlengths 181 193k | __index_level_0__ int64 0 0 |
|---|---|---|---|
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/find/index.md | ---
title: Array.prototype.find()
slug: Web/JavaScript/Reference/Global_Objects/Array/find
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.find
---
{{JSRef}}
The **`find()`** method of {{jsxref("Array")}} instances returns the first element in the provided array that satisfies the prov... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/pop/index.md | ---
title: Array.prototype.pop()
slug: Web/JavaScript/Reference/Global_Objects/Array/pop
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.pop
---
{{JSRef}}
The **`pop()`** method of {{jsxref("Array")}} instances removes the **last**
element from an array and returns that element. This m... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/unshift/index.md | ---
title: Array.prototype.unshift()
slug: Web/JavaScript/Reference/Global_Objects/Array/unshift
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.unshift
---
{{JSRef}}
The **`unshift()`** method of {{jsxref("Array")}} instances adds the specified elements to the
beginning of an array an... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/findindex/index.md | ---
title: Array.prototype.findIndex()
slug: Web/JavaScript/Reference/Global_Objects/Array/findIndex
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.findIndex
---
{{JSRef}}
The **`findIndex()`** method of {{jsxref("Array")}} instances returns the index of the first element in an array ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/keys/index.md | ---
title: Array.prototype.keys()
slug: Web/JavaScript/Reference/Global_Objects/Array/keys
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.keys
---
{{JSRef}}
The **`keys()`** method of {{jsxref("Array")}} instances returns a new _[array iterator](/en-US/docs/Web/JavaScript/Reference/Gl... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/every/index.md | ---
title: Array.prototype.every()
slug: Web/JavaScript/Reference/Global_Objects/Array/every
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.every
---
{{JSRef}}
The **`every()`** method of {{jsxref("Array")}} instances tests whether
all elements in the array pass the test implemented b... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/flat/index.md | ---
title: Array.prototype.flat()
slug: Web/JavaScript/Reference/Global_Objects/Array/flat
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.flat
---
{{JSRef}}
The **`flat()`** method of {{jsxref("Array")}} instances creates a new array with all sub-array
elements concatenated into it re... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/findlastindex/index.md | ---
title: Array.prototype.findLastIndex()
slug: Web/JavaScript/Reference/Global_Objects/Array/findLastIndex
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.findLastIndex
---
{{JSRef}}
The **`findLastIndex()`** method of {{jsxref("Array")}} instances iterates the array in reverse order... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/lastindexof/index.md | ---
title: Array.prototype.lastIndexOf()
slug: Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.lastIndexOf
---
{{JSRef}}
The **`lastIndexOf()`** method of {{jsxref("Array")}} instances returns the last index at which
a given ele... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/concat/index.md | ---
title: Array.prototype.concat()
slug: Web/JavaScript/Reference/Global_Objects/Array/concat
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.concat
---
{{JSRef}}
The **`concat()`** method of {{jsxref("Array")}} instances is used to merge two or more arrays.
This method does not chang... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/reduce/index.md | ---
title: Array.prototype.reduce()
slug: Web/JavaScript/Reference/Global_Objects/Array/reduce
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.reduce
---
{{JSRef}}
The **`reduce()`** method of {{jsxref("Array")}} instances executes a user-supplied "reducer" callback function on each el... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/tosorted/index.md | ---
title: Array.prototype.toSorted()
slug: Web/JavaScript/Reference/Global_Objects/Array/toSorted
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.toSorted
---
{{JSRef}}
The **`toSorted()`** method of {{jsxref("Array")}} instances is the [copying](/en-US/docs/Web/JavaScript/Reference/G... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/of/index.md | ---
title: Array.of()
slug: Web/JavaScript/Reference/Global_Objects/Array/of
page-type: javascript-static-method
browser-compat: javascript.builtins.Array.of
---
{{JSRef}}
The **`Array.of()`** static method creates a new `Array`
instance from a variable number of arguments, regardless of number or type of the
argumen... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/values/index.md | ---
title: Array.prototype.values()
slug: Web/JavaScript/Reference/Global_Objects/Array/values
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.values
---
{{JSRef}}
The **`values()`** method of {{jsxref("Array")}} instances returns a new _[array iterator](/en-US/docs/Web/JavaScript/Refe... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/array/index.md | ---
title: Array() constructor
slug: Web/JavaScript/Reference/Global_Objects/Array/Array
page-type: javascript-constructor
browser-compat: javascript.builtins.Array.Array
---
{{JSRef}}
The **`Array()`** constructor creates {{jsxref("Array")}} objects.
## Syntax
```js-nolint
new Array()
new Array(element1)
new Array... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/with/index.md | ---
title: Array.prototype.with()
slug: Web/JavaScript/Reference/Global_Objects/Array/with
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.with
---
{{JSRef}}
The **`with()`** method of {{jsxref("Array")}} instances is the [copying](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Ar... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/@@iterator/index.md | ---
title: Array.prototype[@@iterator]()
slug: Web/JavaScript/Reference/Global_Objects/Array/@@iterator
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.@@iterator
---
{{JSRef}}
The **`[@@iterator]()`** method of {{jsxref("Array")}} instances implements the [iterable protocol](/en-US/do... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/@@unscopables/index.md | ---
title: Array.prototype[@@unscopables]
slug: Web/JavaScript/Reference/Global_Objects/Array/@@unscopables
page-type: javascript-instance-data-property
browser-compat: javascript.builtins.Array.@@unscopables
---
{{JSRef}}
The **`@@unscopables`** data property of `Array.prototype` is shared by all {{jsxref("Array")}}... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/shift/index.md | ---
title: Array.prototype.shift()
slug: Web/JavaScript/Reference/Global_Objects/Array/shift
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.shift
---
{{JSRef}}
The **`shift()`** method of {{jsxref("Array")}} instances removes the **first**
element from an array and returns that remove... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/some/index.md | ---
title: Array.prototype.some()
slug: Web/JavaScript/Reference/Global_Objects/Array/some
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.some
---
{{JSRef}}
The **`some()`** method of {{jsxref("Array")}} instances tests whether
at least one element in the array passes the test impleme... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/tospliced/index.md | ---
title: Array.prototype.toSpliced()
slug: Web/JavaScript/Reference/Global_Objects/Array/toSpliced
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.toSpliced
---
{{JSRef}}
The **`toSpliced()`** method of {{jsxref("Array")}} instances is the [copying](/en-US/docs/Web/JavaScript/Referen... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/foreach/index.md | ---
title: Array.prototype.forEach()
slug: Web/JavaScript/Reference/Global_Objects/Array/forEach
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.forEach
---
{{JSRef}}
The **`forEach()`** method of {{jsxref("Array")}} instances executes a provided function once
for each array element.
... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/fill/index.md | ---
title: Array.prototype.fill()
slug: Web/JavaScript/Reference/Global_Objects/Array/fill
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.fill
---
{{JSRef}}
The **`fill()`** method of {{jsxref("Array")}} instances changes all elements within a range of indices in an array to a static ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/tolocalestring/index.md | ---
title: Array.prototype.toLocaleString()
slug: Web/JavaScript/Reference/Global_Objects/Array/toLocaleString
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.toLocaleString
---
{{JSRef}}
The **`toLocaleString()`** method of {{jsxref("Array")}} instances returns a string representing
t... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/sort/index.md | ---
title: Array.prototype.sort()
slug: Web/JavaScript/Reference/Global_Objects/Array/sort
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.sort
---
{{JSRef}}
The **`sort()`** method of {{jsxref("Array")}} instances sorts the elements of an array _[in place](https://en.wikipedia.org/wik... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/isarray/index.md | ---
title: Array.isArray()
slug: Web/JavaScript/Reference/Global_Objects/Array/isArray
page-type: javascript-static-method
browser-compat: javascript.builtins.Array.isArray
---
{{JSRef}}
The **`Array.isArray()`** static method determines whether the passed value is an {{jsxref("Array")}}.
{{EmbedInteractiveExample("... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/fromasync/index.md | ---
title: Array.fromAsync()
slug: Web/JavaScript/Reference/Global_Objects/Array/fromAsync
page-type: javascript-static-method
browser-compat: javascript.builtins.Array.fromAsync
---
{{JSRef}}
The **`Array.fromAsync()`** static method creates a new, shallow-copied `Array` instance from an [async iterable](/en-US/docs... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/join/index.md | ---
title: Array.prototype.join()
slug: Web/JavaScript/Reference/Global_Objects/Array/join
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.join
---
{{JSRef}}
The **`join()`** method of {{jsxref("Array")}} instances creates and
returns a new string by concatenating all of the elements i... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/@@species/index.md | ---
title: Array[@@species]
slug: Web/JavaScript/Reference/Global_Objects/Array/@@species
page-type: javascript-static-accessor-property
browser-compat: javascript.builtins.Array.@@species
---
{{JSRef}}
The **`Array[@@species]`** static accessor property returns the constructor used to construct return values from ar... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/indexof/index.md | ---
title: Array.prototype.indexOf()
slug: Web/JavaScript/Reference/Global_Objects/Array/indexOf
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.indexOf
---
{{JSRef}}
The **`indexOf()`** method of {{jsxref("Array")}} instances returns the first index at which a
given element can be fou... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/splice/index.md | ---
title: Array.prototype.splice()
slug: Web/JavaScript/Reference/Global_Objects/Array/splice
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.splice
---
{{JSRef}}
The **`splice()`** method of {{jsxref("Array")}} instances changes the contents of an array by
removing or replacing exist... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/filter/index.md | ---
title: Array.prototype.filter()
slug: Web/JavaScript/Reference/Global_Objects/Array/filter
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.filter
---
{{JSRef}}
The **`filter()`** method of {{jsxref("Array")}} instances creates a [shallow copy](/en-US/docs/Glossary/Shallow_copy) of ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/array | data/mdn-content/files/en-us/web/javascript/reference/global_objects/array/entries/index.md | ---
title: Array.prototype.entries()
slug: Web/JavaScript/Reference/Global_Objects/Array/entries
page-type: javascript-instance-method
browser-compat: javascript.builtins.Array.entries
---
{{JSRef}}
The **`entries()`** method of {{jsxref("Array")}} instances returns a new _[array iterator](/en-US/docs/Web/JavaScript/... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typeerror/index.md | ---
title: TypeError
slug: Web/JavaScript/Reference/Global_Objects/TypeError
page-type: javascript-class
browser-compat: javascript.builtins.TypeError
---
{{JSRef}}
The **`TypeError`** object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expec... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typeerror | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typeerror/typeerror/index.md | ---
title: TypeError() constructor
slug: Web/JavaScript/Reference/Global_Objects/TypeError/TypeError
page-type: javascript-constructor
browser-compat: javascript.builtins.TypeError.TypeError
---
{{JSRef}}
The **`TypeError()`** constructor creates {{jsxref("TypeError")}} objects.
## Syntax
```js-nolint
new TypeError... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects | data/mdn-content/files/en-us/web/javascript/reference/global_objects/nan/index.md | ---
title: NaN
slug: Web/JavaScript/Reference/Global_Objects/NaN
page-type: javascript-global-property
browser-compat: javascript.builtins.NaN
---
{{jsSidebar("Objects")}}
The **`NaN`** global property is a value representing Not-A-Number.
{{EmbedInteractiveExample("pages/js/globalprops-nan.html")}}
## Value
The s... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/index.md | ---
title: TypedArray
slug: Web/JavaScript/Reference/Global_Objects/TypedArray
page-type: javascript-class
browser-compat: javascript.builtins.TypedArray
---
{{JSRef}}
A **_TypedArray_** object describes an array-like view of an
underlying [binary data buffer](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/at/index.md | ---
title: TypedArray.prototype.at()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/at
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.at
---
{{JSRef}}
The **`at()`** method of {{jsxref("TypedArray")}} instances takes an integer value and returns the item at that index, ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/reduceright/index.md | ---
title: TypedArray.prototype.reduceRight()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.reduceRight
---
{{JSRef}}
The **`reduceRight()`** method of {{jsxref("TypedArray")}} instances applies a function agai... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/map/index.md | ---
title: TypedArray.prototype.map()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/map
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.map
---
{{JSRef}}
The **`map()`** method of {{jsxref("TypedArray")}} instances creates a new typed array populated with the results of... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/from/index.md | ---
title: TypedArray.from()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/from
page-type: javascript-static-method
browser-compat: javascript.builtins.TypedArray.from
---
{{JSRef}}
The **`TypedArray.from()`** static method creates a new
[typed array](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Typ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/reverse/index.md | ---
title: TypedArray.prototype.reverse()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/reverse
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.reverse
---
{{JSRef}}
The **`reverse()`** method of {{jsxref("TypedArray")}} instances reverses a typed array _[in place](http... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/copywithin/index.md | ---
title: TypedArray.prototype.copyWithin()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.copyWithin
---
{{JSRef}}
The **`copyWithin()`** method of {{jsxref("TypedArray")}} instances shallow copies part of this... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/tostring/index.md | ---
title: TypedArray.prototype.toString()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/toString
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.toString
---
{{JSRef}}
The **`toString()`** method of {{jsxref("TypedArray")}} instances returns a string representing the s... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/byteoffset/index.md | ---
title: TypedArray.prototype.byteOffset
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset
page-type: javascript-instance-accessor-property
browser-compat: javascript.builtins.TypedArray.byteOffset
---
{{JSRef}}
The **`byteOffset`** accessor property of {{jsxref("TypedArray")}} instances returns t... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/buffer/index.md | ---
title: TypedArray.prototype.buffer
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/buffer
page-type: javascript-instance-accessor-property
browser-compat: javascript.builtins.TypedArray.buffer
---
{{JSRef}}
The **`buffer`** accessor property of {{jsxref("TypedArray")}} instances returns the {{jsxref("Arr... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/slice/index.md | ---
title: TypedArray.prototype.slice()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/slice
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.slice
---
{{JSRef}}
The **`slice()`** method of {{jsxref("TypedArray")}} instances returns a copy of a portion of a typed array in... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/subarray/index.md | ---
title: TypedArray.prototype.subarray()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/subarray
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.subarray
---
{{JSRef}}
The **`subarray()`** method of {{jsxref("TypedArray")}} instances returns a new typed array
on the sa... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/findlast/index.md | ---
title: TypedArray.prototype.findLast()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/findLast
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.findLast
---
{{JSRef}}
The **`findLast()`** method of {{jsxref("TypedArray")}} instances iterates the typed array in reverse... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/includes/index.md | ---
title: TypedArray.prototype.includes()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/includes
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.includes
---
{{JSRef}}
The **`includes()`** method of {{jsxref("TypedArray")}} instances determines whether a typed array in... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/toreversed/index.md | ---
title: TypedArray.prototype.toReversed()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/toReversed
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.toReversed
---
{{JSRef}}
The **`toReversed()`** method of {{jsxref("TypedArray")}} instances is the [copying](/en-US/doc... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/length/index.md | ---
title: TypedArray.prototype.length
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/length
page-type: javascript-instance-accessor-property
browser-compat: javascript.builtins.TypedArray.length
---
{{JSRef}}
The **`length`** accessor property of {{jsxref("TypedArray")}} instances returns the length (in el... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/set/index.md | ---
title: TypedArray.prototype.set()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/set
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.set
---
{{JSRef}}
The **`set()`** method of {{jsxref("TypedArray")}} instances stores multiple values in the typed
array, reading inpu... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/find/index.md | ---
title: TypedArray.prototype.find()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/find
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.find
---
{{JSRef}}
The **`find()`** method of {{jsxref("TypedArray")}} instances returns the first element in the provided typed arr... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/findindex/index.md | ---
title: TypedArray.prototype.findIndex()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.findIndex
---
{{JSRef}}
The **`findIndex()`** method of {{jsxref("TypedArray")}} instances returns the index of the first ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/keys/index.md | ---
title: TypedArray.prototype.keys()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/keys
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.keys
---
{{JSRef}}
The **`keys()`** method of {{jsxref("TypedArray")}} instances returns a new _[array iterator](/en-US/docs/Web/Jav... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/every/index.md | ---
title: TypedArray.prototype.every()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/every
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.every
---
{{JSRef}}
The **`every()`** method of {{jsxref("TypedArray")}} instances tests whether all elements in the typed array p... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.md | ---
title: TypedArray.BYTES_PER_ELEMENT
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/BYTES_PER_ELEMENT
page-type: javascript-static-data-property
browser-compat: javascript.builtins.TypedArray.BYTES_PER_ELEMENT
---
{{JSRef}}
The **`TypedArray.BYTES_PER_ELEMENT`** static data property represents the size i... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/findlastindex/index.md | ---
title: TypedArray.prototype.findLastIndex()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/findLastIndex
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.findLastIndex
---
{{JSRef}}
The **`findLastIndex()`** method of {{jsxref("TypedArray")}} instances iterates the ty... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/lastindexof/index.md | ---
title: TypedArray.prototype.lastIndexOf()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.lastIndexOf
---
{{JSRef}}
The **`lastIndexOf()`** method of {{jsxref("TypedArray")}} instances returns the last index ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/bytelength/index.md | ---
title: TypedArray.prototype.byteLength
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength
page-type: javascript-instance-accessor-property
browser-compat: javascript.builtins.TypedArray.byteLength
---
{{JSRef}}
The **`byteLength`** accessor property of {{jsxref("TypedArray")}} instances returns t... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/reduce/index.md | ---
title: TypedArray.prototype.reduce()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/reduce
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.reduce
---
{{JSRef}}
The **`reduce()`** method of {{jsxref("TypedArray")}} instances executes a user-supplied "reducer" callback... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/tosorted/index.md | ---
title: TypedArray.prototype.toSorted()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/toSorted
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.toSorted
---
{{JSRef}}
The **`toSorted()`** method of {{jsxref("TypedArray")}} instances is the [copying](/en-US/docs/Web/Ja... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/of/index.md | ---
title: TypedArray.of()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/of
page-type: javascript-static-method
browser-compat: javascript.builtins.TypedArray.of
---
{{JSRef}}
The **`TypedArray.of()`** static method creates a new
[typed array](/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/values/index.md | ---
title: TypedArray.prototype.values()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/values
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.values
---
{{JSRef}}
The **`values()`** method of {{jsxref("TypedArray")}} instances returns a new _[array iterator](/en-US/docs... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/with/index.md | ---
title: TypedArray.prototype.with()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/with
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.with
---
{{JSRef}}
The **`with()`** method of {{jsxref("TypedArray")}} instances is the [copying](/en-US/docs/Web/JavaScript/Referen... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/@@iterator/index.md | ---
title: TypedArray.prototype[@@iterator]()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/@@iterator
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.@@iterator
---
{{JSRef}}
The **`[@@iterator]()`** method of {{jsxref("TypedArray")}} instances implements the [iterable... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/some/index.md | ---
title: TypedArray.prototype.some()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/some
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.some
---
{{JSRef}}
The **`some()`** method of {{jsxref("TypedArray")}} instances tests whether at least one element in the typed arr... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/foreach/index.md | ---
title: TypedArray.prototype.forEach()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/forEach
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.forEach
---
{{JSRef}}
The **`forEach()`** method of {{jsxref("TypedArray")}} instances executes a provided function once for e... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/fill/index.md | ---
title: TypedArray.prototype.fill()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/fill
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.fill
---
{{JSRef}}
The **`fill()`** method of {{jsxref("TypedArray")}} instances changes all elements within a range of indices in a... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/tolocalestring/index.md | ---
title: TypedArray.prototype.toLocaleString()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.toLocaleString
---
{{JSRef}}
The **`toLocaleString()`** method of {{jsxref("TypedArray")}} instances returns a s... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/sort/index.md | ---
title: TypedArray.prototype.sort()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/sort
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.sort
---
{{JSRef}}
The **`sort()`** method of {{jsxref("TypedArray")}} instances sorts the elements of a typed array _[in place](htt... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/join/index.md | ---
title: TypedArray.prototype.join()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/join
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.join
---
{{JSRef}}
The **`join()`** method of {{jsxref("TypedArray")}} instances creates and returns a new string by concatenating a... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/@@species/index.md | ---
title: TypedArray[@@species]
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/@@species
page-type: javascript-static-accessor-property
browser-compat: javascript.builtins.TypedArray.@@species
---
{{JSRef}}
The **`TypedArray[@@species]`** static accessor property returns the constructor used to construct r... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/indexof/index.md | ---
title: TypedArray.prototype.indexOf()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.indexOf
---
{{JSRef}}
The **`indexOf()`** method of {{jsxref("TypedArray")}} instances returns the first index at which a give... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/filter/index.md | ---
title: TypedArray.prototype.filter()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/filter
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.filter
---
{{JSRef}}
The **`filter()`** method of {{jsxref("TypedArray")}} instances creates a copy of a portion of a given type... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray | data/mdn-content/files/en-us/web/javascript/reference/global_objects/typedarray/entries/index.md | ---
title: TypedArray.prototype.entries()
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/entries
page-type: javascript-instance-method
browser-compat: javascript.builtins.TypedArray.entries
---
{{JSRef}}
The **`entries()`** method of {{jsxref("TypedArray")}} instances returns a new _[array iterator](/en-US/... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/index.md | ---
title: SharedArrayBuffer
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
page-type: javascript-class
browser-compat: javascript.builtins.SharedArrayBuffer
---
{{JSRef}}
The **`SharedArrayBuffer`** object is used to represent a generic raw binary data buffer, similar to the {{jsxref("ArrayBuffer")}... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/growable/index.md | ---
title: SharedArrayBuffer.prototype.growable
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable
page-type: javascript-instance-accessor-property
browser-compat: javascript.builtins.SharedArrayBuffer.growable
---
{{JSRef}}
The **`growable`** accessor property of {{jsxref("SharedArrayBuffer")}}... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/slice/index.md | ---
title: SharedArrayBuffer.prototype.slice()
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/slice
page-type: javascript-instance-method
browser-compat: javascript.builtins.SharedArrayBuffer.slice
---
{{JSRef}}
The **`slice()`** method of {{jsxref("SharedArrayBuffer")}} instances returns a new `Shar... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/grow/index.md | ---
title: SharedArrayBuffer.prototype.grow()
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow
page-type: javascript-instance-method
browser-compat: javascript.builtins.SharedArrayBuffer.grow
---
{{JSRef}}
The **`grow()`** method of {{jsxref("SharedArrayBuffer")}} instances grows the `SharedArrayB... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/bytelength/index.md | ---
title: SharedArrayBuffer.prototype.byteLength
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/byteLength
page-type: javascript-instance-accessor-property
browser-compat: javascript.builtins.SharedArrayBuffer.byteLength
---
{{JSRef}}
The **`byteLength`** accessor property of {{jsxref("SharedArrayBu... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/sharedarraybuffer/index.md | ---
title: SharedArrayBuffer() constructor
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/SharedArrayBuffer
page-type: javascript-constructor
browser-compat: javascript.builtins.SharedArrayBuffer.SharedArrayBuffer
---
{{JSRef}}
> **Note:** The `SharedArrayBuffer` constructor may not always be globall... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/maxbytelength/index.md | ---
title: SharedArrayBuffer.prototype.maxByteLength
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength
page-type: javascript-instance-accessor-property
browser-compat: javascript.builtins.SharedArrayBuffer.maxByteLength
---
{{JSRef}}
The **`maxByteLength`** accessor property of {{jsxref("S... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer | data/mdn-content/files/en-us/web/javascript/reference/global_objects/sharedarraybuffer/@@species/index.md | ---
title: SharedArrayBuffer[@@species]
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/@@species
page-type: javascript-static-accessor-property
browser-compat: javascript.builtins.SharedArrayBuffer.@@species
---
{{JSRef}}
The **`SharedArrayBuffer[@@species]`** static accessor property returns the con... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/index.md | ---
title: Promise
slug: Web/JavaScript/Reference/Global_Objects/Promise
page-type: javascript-class
browser-compat: javascript.builtins.Promise
---
{{JSRef}}
The **`Promise`** object represents the eventual completion (or failure) of an asynchronous operation and its resulting value.
To learn about the way promises... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/catch/index.md | ---
title: Promise.prototype.catch()
slug: Web/JavaScript/Reference/Global_Objects/Promise/catch
page-type: javascript-instance-method
browser-compat: javascript.builtins.Promise.catch
---
{{JSRef}}
The **`catch()`** method of {{jsxref("Promise")}} instances schedules a function to be called when the promise is rejec... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/finally/index.md | ---
title: Promise.prototype.finally()
slug: Web/JavaScript/Reference/Global_Objects/Promise/finally
page-type: javascript-instance-method
browser-compat: javascript.builtins.Promise.finally
---
{{JSRef}}
The **`finally()`** method of {{jsxref("Promise")}} instances schedules a function to be called when the promise ... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/allsettled/index.md | ---
title: Promise.allSettled()
slug: Web/JavaScript/Reference/Global_Objects/Promise/allSettled
page-type: javascript-static-method
browser-compat: javascript.builtins.Promise.allSettled
---
{{JSRef}}
The **`Promise.allSettled()`** static method takes an iterable of promises as input and returns a single {{jsxref("P... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/any/index.md | ---
title: Promise.any()
slug: Web/JavaScript/Reference/Global_Objects/Promise/any
page-type: javascript-static-method
browser-compat: javascript.builtins.Promise.any
---
{{JSRef}}
The **`Promise.any()`** static method takes an iterable of promises as input and returns a single {{jsxref("Promise")}}. This returned pr... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/race/index.md | ---
title: Promise.race()
slug: Web/JavaScript/Reference/Global_Objects/Promise/race
page-type: javascript-static-method
browser-compat: javascript.builtins.Promise.race
---
{{JSRef}}
The **`Promise.race()`** static method takes an iterable of promises as input and returns a single {{jsxref("Promise")}}. This returne... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/withresolvers/index.md | ---
title: Promise.withResolvers()
slug: Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
page-type: javascript-static-method
browser-compat: javascript.builtins.Promise.withResolvers
---
{{JSRef}}
The **`Promise.withResolvers()`** static method returns an object containing a new {{jsxref("Promise")}} ob... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/resolve/index.md | ---
title: Promise.resolve()
slug: Web/JavaScript/Reference/Global_Objects/Promise/resolve
page-type: javascript-static-method
browser-compat: javascript.builtins.Promise.resolve
---
{{JSRef}}
The **`Promise.resolve()`** static method "resolves" a given value to a {{jsxref("Promise")}}. If the value is a promise, tha... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/promise/index.md | ---
title: Promise() constructor
slug: Web/JavaScript/Reference/Global_Objects/Promise/Promise
page-type: javascript-constructor
browser-compat: javascript.builtins.Promise.Promise
---
{{JSRef}}
The **`Promise()`** constructor creates {{jsxref("Promise")}} objects. It is primarily used to wrap callback-based APIs tha... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/all/index.md | ---
title: Promise.all()
slug: Web/JavaScript/Reference/Global_Objects/Promise/all
page-type: javascript-static-method
browser-compat: javascript.builtins.Promise.all
---
{{JSRef}}
The **`Promise.all()`** static method takes an iterable of promises as input and returns a single {{jsxref("Promise")}}. This returned pr... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/reject/index.md | ---
title: Promise.reject()
slug: Web/JavaScript/Reference/Global_Objects/Promise/reject
page-type: javascript-static-method
browser-compat: javascript.builtins.Promise.reject
---
{{JSRef}}
The **`Promise.reject()`** static method returns a `Promise` object that is rejected with a given reason.
{{EmbedInteractiveExa... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/then/index.md | ---
title: Promise.prototype.then()
slug: Web/JavaScript/Reference/Global_Objects/Promise/then
page-type: javascript-instance-method
browser-compat: javascript.builtins.Promise.then
---
{{JSRef}}
The **`then()`** method of {{jsxref("Promise")}} instances takes up to two arguments: callback functions for the fulfilled... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise | data/mdn-content/files/en-us/web/javascript/reference/global_objects/promise/@@species/index.md | ---
title: Promise[@@species]
slug: Web/JavaScript/Reference/Global_Objects/Promise/@@species
page-type: javascript-static-accessor-property
browser-compat: javascript.builtins.Promise.@@species
---
{{JSRef}}
The **`Promise[@@species]`** static accessor property returns the constructor used to construct return values... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects | data/mdn-content/files/en-us/web/javascript/reference/global_objects/decodeuri/index.md | ---
title: decodeURI()
slug: Web/JavaScript/Reference/Global_Objects/decodeURI
page-type: javascript-function
browser-compat: javascript.builtins.decodeURI
---
{{jsSidebar("Objects")}}
The **`decodeURI()`** function decodes a Uniform Resource Identifier (URI) previously created by {{jsxref("encodeURI()")}} or a simil... | 0 |
data/mdn-content/files/en-us/web/javascript/reference/global_objects | data/mdn-content/files/en-us/web/javascript/reference/global_objects/int32array/index.md | ---
title: Int32Array
slug: Web/JavaScript/Reference/Global_Objects/Int32Array
page-type: javascript-class
browser-compat: javascript.builtins.Int32Array
---
{{JSRef}}
The **`Int32Array`** typed array represents an array of 32-bit signed integers in the platform byte order. If control over byte order is needed, use {... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.