# Interface: ReadonlyInt32Array

# Hierarchy

  • Omit<Int32Array, "copyWithin" | "fill" | "reverse" | "set" | "sort">

    ↳ ReadonlyInt32Array

# Indexable

▪ [n: number]: number

# Table of contents

# Properties

# Methods

# Properties

# BYTES_PER_ELEMENT

• Readonly BYTES_PER_ELEMENT: number

The size in bytes of each element in the array.

# Inherited from

Omit.BYTES_PER_ELEMENT

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3229


# [toStringTag]

• Readonly [toStringTag]: "Int32Array"

# Inherited from

Omit.__@toStringTag@28

# Defined in

node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:298


# buffer

• Readonly buffer: ArrayBufferLike

The ArrayBuffer instance referenced by the array.

# Inherited from

Omit.buffer

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3234


# byteLength

• Readonly byteLength: number

The length in bytes of the array.

# Inherited from

Omit.byteLength

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3239


# byteOffset

• Readonly byteOffset: number

The offset in bytes of the array.

# Inherited from

Omit.byteOffset

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3244


# length

• Readonly length: number

The length of the array.

# Inherited from

Omit.length

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3343

# Methods

# [iterator]

▸ [iterator](): IterableIterator<number>

# Returns

IterableIterator<number>

# Inherited from

Omit.__@iterator@85

# Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:389


# entries

▸ entries(): IterableIterator<[number, number]>

Returns an array of key, value pairs for every entry in the array

# Returns

IterableIterator<[number, number]>

# Inherited from

Omit.entries

# Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:393


# every

▸ every(predicate, thisArg?): boolean

Determines whether all the members of an array satisfy the specified test.

# Parameters

Name Type Description
predicate (value: number, index: number, array: Int32Array) => unknown A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
thisArg? any An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

# Returns

boolean

# Inherited from

Omit.every

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3265


# filter

▸ filter(predicate, thisArg?): Int32Array

Returns the elements of an array that meet the condition specified in a callback function.

# Parameters

Name Type Description
predicate (value: number, index: number, array: Int32Array) => any A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
thisArg? any An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

# Returns

Int32Array

# Inherited from

Omit.filter

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3284


# find

▸ find(predicate, thisArg?): undefined | number

Returns the value of the first element in the array where predicate is true, and undefined otherwise.

# Parameters

Name Type Description
predicate (value: number, index: number, obj: Int32Array) => boolean find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
thisArg? any If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

# Returns

undefined | number

# Inherited from

Omit.find

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3295


# findIndex

▸ findIndex(predicate, thisArg?): number

Returns the index of the first element in the array where predicate is true, and -1 otherwise.

# Parameters

Name Type Description
predicate (value: number, index: number, obj: Int32Array) => boolean find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.
thisArg? any If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

# Returns

number

# Inherited from

Omit.findIndex

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3306


# forEach

▸ forEach(callbackfn, thisArg?): void

Performs the specified action for each element in an array.

# Parameters

Name Type Description
callbackfn (value: number, index: number, array: Int32Array) => void A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
thisArg? any An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

# Returns

void

# Inherited from

Omit.forEach

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3315


# includes

▸ includes(searchElement, fromIndex?): boolean

Determines whether an array includes a certain element, returning true or false as appropriate.

# Parameters

Name Type Description
searchElement number The element to search for.
fromIndex? number The position in this array at which to begin searching for searchElement.

# Returns

boolean

# Inherited from

Omit.includes

# Defined in

node_modules/typescript/lib/lib.es2016.array.include.d.ts:90


# indexOf

▸ indexOf(searchElement, fromIndex?): number

Returns the index of the first occurrence of a value in an array.

# Parameters

Name Type Description
searchElement number The value to locate in the array.
fromIndex? number The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

# Returns

number

# Inherited from

Omit.indexOf

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3323


# join

▸ join(separator?): string

Adds all the elements of an array separated by the specified separator string.

# Parameters

Name Type Description
separator? string A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.

# Returns

string

# Inherited from

Omit.join

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3330


# keys

▸ keys(): IterableIterator<number>

Returns an list of keys in the array

# Returns

IterableIterator<number>

# Inherited from

Omit.keys

# Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:397


# lastIndexOf

▸ lastIndexOf(searchElement, fromIndex?): number

Returns the index of the last occurrence of a value in an array.

# Parameters

Name Type Description
searchElement number The value to locate in the array.
fromIndex? number The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

# Returns

number

# Inherited from

Omit.lastIndexOf

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3338


# map

▸ map(callbackfn, thisArg?): Int32Array

Calls a defined callback function on each element of an array, and returns an array that contains the results.

# Parameters

Name Type Description
callbackfn (value: number, index: number, array: Int32Array) => number A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
thisArg? any An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

# Returns

Int32Array

# Inherited from

Omit.map

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3353


# reduce

▸ reduce(callbackfn): number

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

# Parameters

Name Type Description
callbackfn (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

# Returns

number

# Inherited from

Omit.reduce

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3365

▸ reduce(callbackfn, initialValue): number

# Parameters

Name Type
callbackfn (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number
initialValue number

# Returns

number

# Inherited from

Omit.reduce

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3366

▸ reduce<U>(callbackfn, initialValue): U

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

# Type parameters

Name
U

# Parameters

Name Type Description
callbackfn (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
initialValue U If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

# Returns

U

# Inherited from

Omit.reduce

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3378


# reduceRight

▸ reduceRight(callbackfn): number

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

# Parameters

Name Type Description
callbackfn (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

# Returns

number

# Inherited from

Omit.reduceRight

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3390

▸ reduceRight(callbackfn, initialValue): number

# Parameters

Name Type
callbackfn (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number
initialValue number

# Returns

number

# Inherited from

Omit.reduceRight

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3391

▸ reduceRight<U>(callbackfn, initialValue): U

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

# Type parameters

Name
U

# Parameters

Name Type Description
callbackfn (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
initialValue U If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

# Returns

U

# Inherited from

Omit.reduceRight

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3403


# slice

▸ slice(start?, end?): Int32Array

Returns a section of an array.

# Parameters

Name Type Description
start? number The beginning of the specified portion of the array.
end? number The end of the specified portion of the array. This is exclusive of the element at the index 'end'.

# Returns

Int32Array

# Inherited from

Omit.slice

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3422


# some

▸ some(predicate, thisArg?): boolean

Determines whether the specified callback function returns true for any element of an array.

# Parameters

Name Type Description
predicate (value: number, index: number, array: Int32Array) => unknown A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
thisArg? any An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

# Returns

boolean

# Inherited from

Omit.some

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3432


# subarray

▸ subarray(begin?, end?): Int32Array

Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.

# Parameters

Name Type Description
begin? number The index of the beginning of the array.
end? number The index of the end of the array.

# Returns

Int32Array

# Inherited from

Omit.subarray

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3451


# toLocaleString

▸ toLocaleString(): string

Converts a number to a string by using the current locale.

# Returns

string

# Inherited from

Omit.toLocaleString

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3456


# toString

▸ toString(): string

Returns a string representation of an array.

# Returns

string

# Inherited from

Omit.toString

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3461


# valueOf

▸ valueOf(): Int32Array

Returns the primitive value of the specified object.

# Returns

Int32Array

# Inherited from

Omit.valueOf

# Defined in

node_modules/typescript/lib/lib.es5.d.ts:3464


# values

▸ values(): IterableIterator<number>

Returns an list of values in the array

# Returns

IterableIterator<number>

# Inherited from

Omit.values

# Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:401