Skip to content

v2u

Interface representing its WGSL vector type counterpart: vec2u or vec2. A vector with 2 elements of type u32

  • Tuple2<number>.Swizzle2<v2u, v3u, v4u>.vecInfixNotation<v2u>

[n: number]: number

readonly [$internal]: true

packages/typegpu/src/data/wgslTypes.ts:494


readonly [unscopables]: object

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

[key: number]: undefined | boolean

optional [iterator]: boolean

readonly optional [unscopables]: boolean

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

optional at: boolean

optional concat: boolean

optional copyWithin: boolean

optional entries: boolean

optional every: boolean

optional fill: boolean

optional filter: boolean

optional find: boolean

optional findIndex: boolean

optional findLast: boolean

optional findLastIndex: boolean

optional flat: boolean

optional flatMap: boolean

optional forEach: boolean

optional includes: boolean

optional indexOf: boolean

optional join: boolean

optional keys: boolean

optional lastIndexOf: boolean

optional length: boolean

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

optional map: boolean

optional pop: boolean

optional push: boolean

optional reduce: boolean

optional reduceRight: boolean

optional reverse: boolean

optional shift: boolean

optional slice: boolean

optional some: boolean

optional sort: boolean

optional splice: boolean

optional toLocaleString: boolean

optional toReversed: boolean

optional toSorted: boolean

optional toSpliced: boolean

optional toString: boolean

optional unshift: boolean

optional values: boolean

optional with: boolean

Tuple2.[unscopables]

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:97


0: number

Tuple2.0


1: number

Tuple2.1


readonly kind: "vec2u"

use to distinguish between vectors of the same size on the type level

packages/typegpu/src/data/wgslTypes.ts:496


length: 2

Tuple2.length


x: number

packages/typegpu/src/data/wgslTypes.ts:497


readonly xx: v2u

Swizzle2.xx

packages/typegpu/src/data/wgslTypes.ts:132


readonly xxx: v3u

Swizzle2.xxx

packages/typegpu/src/data/wgslTypes.ts:137


readonly xxxx: v4u

Swizzle2.xxxx

packages/typegpu/src/data/wgslTypes.ts:146


readonly xxxy: v4u

Swizzle2.xxxy

packages/typegpu/src/data/wgslTypes.ts:147


readonly xxy: v3u

Swizzle2.xxy

packages/typegpu/src/data/wgslTypes.ts:138


readonly xxyx: v4u

Swizzle2.xxyx

packages/typegpu/src/data/wgslTypes.ts:148


readonly xxyy: v4u

Swizzle2.xxyy

packages/typegpu/src/data/wgslTypes.ts:149


readonly xy: v2u

Swizzle2.xy

packages/typegpu/src/data/wgslTypes.ts:133


readonly xyx: v3u

Swizzle2.xyx

packages/typegpu/src/data/wgslTypes.ts:139


readonly xyxx: v4u

Swizzle2.xyxx

packages/typegpu/src/data/wgslTypes.ts:150


readonly xyxy: v4u

Swizzle2.xyxy

packages/typegpu/src/data/wgslTypes.ts:151


readonly xyy: v3u

Swizzle2.xyy

packages/typegpu/src/data/wgslTypes.ts:140


readonly xyyx: v4u

Swizzle2.xyyx

packages/typegpu/src/data/wgslTypes.ts:152


readonly xyyy: v4u

Swizzle2.xyyy

packages/typegpu/src/data/wgslTypes.ts:153


y: number

packages/typegpu/src/data/wgslTypes.ts:498


readonly yx: v2u

Swizzle2.yx

packages/typegpu/src/data/wgslTypes.ts:134


readonly yxx: v3u

Swizzle2.yxx

packages/typegpu/src/data/wgslTypes.ts:141


readonly yxxx: v4u

Swizzle2.yxxx

packages/typegpu/src/data/wgslTypes.ts:154


readonly yxxy: v4u

Swizzle2.yxxy

packages/typegpu/src/data/wgslTypes.ts:155


readonly yxy: v3u

Swizzle2.yxy

packages/typegpu/src/data/wgslTypes.ts:142


readonly yxyx: v4u

Swizzle2.yxyx

packages/typegpu/src/data/wgslTypes.ts:156


readonly yxyy: v4u

Swizzle2.yxyy

packages/typegpu/src/data/wgslTypes.ts:157


readonly yy: v2u

Swizzle2.yy

packages/typegpu/src/data/wgslTypes.ts:135


readonly yyx: v3u

Swizzle2.yyx

packages/typegpu/src/data/wgslTypes.ts:143


readonly yyxx: v4u

Swizzle2.yyxx

packages/typegpu/src/data/wgslTypes.ts:158


readonly yyxy: v4u

Swizzle2.yyxy

packages/typegpu/src/data/wgslTypes.ts:159


readonly yyy: v3u

Swizzle2.yyy

packages/typegpu/src/data/wgslTypes.ts:144


readonly yyyx: v4u

Swizzle2.yyyx

packages/typegpu/src/data/wgslTypes.ts:160


readonly yyyy: v4u

Swizzle2.yyyy

packages/typegpu/src/data/wgslTypes.ts:161

[iterator](): ArrayIterator<number>

Iterator

ArrayIterator<number>

Tuple2.[iterator]

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:78


add(other): v2u

number

v2u

vecInfixNotation.add

packages/typegpu/src/data/wgslTypes.ts:60

add(other): v2u

v2u

v2u

vecInfixNotation.add

packages/typegpu/src/data/wgslTypes.ts:61


at(index): undefined | number

Returns the item located at the specified index.

number

The zero-based index of the desired code unit. A negative index will count back from the last item.

undefined | number

Tuple2.at

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.array.d.ts:24


concat(…items): number[]

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

ConcatArray<number>[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple2.concat

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1350

concat(…items): number[]

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

…(number | ConcatArray<number>)[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple2.concat

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1356


copyWithin(target, start, end?): this

Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

number

If target is negative, it is treated as length+target where length is the length of the array.

number

If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

number

If not specified, length of the this object is used as its default value.

this

Tuple2.copyWithin

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:62


div(other): v2u

number

v2u

vecInfixNotation.div

packages/typegpu/src/data/wgslTypes.ts:70

div(other): v2u

v2u

v2u

vecInfixNotation.div

packages/typegpu/src/data/wgslTypes.ts:71


entries(): ArrayIterator<[number, number]>

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

ArrayIterator<[number, number]>

Tuple2.entries

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:83


every<S>(predicate, thisArg?): this is S[]

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

S extends number

(value, index, array) => value is S

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.

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.

this is S[]

Tuple2.every

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1433

every(predicate, thisArg?): boolean

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

(value, index, array) => 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.

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.

boolean

Tuple2.every

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1442


fill(value, start?, end?): this

Changes all array elements from start to end index to a static value and returns the modified array

number

value to fill array section with

number

index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

number

index to stop filling the array at. If end is negative, it is treated as length+end.

this

Tuple2.fill

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:51


filter<S>(predicate, thisArg?): S[]

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

S extends number

(value, index, array) => value is S

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

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.

S[]

Tuple2.filter

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1469

filter(predicate, thisArg?): number[]

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

(value, index, array) => unknown

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

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.

number[]

Tuple2.filter

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1475


find<S>(predicate, thisArg?): undefined | S

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

S extends number

(value, index, obj) => value is S

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.

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.

undefined | S

Tuple2.find

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:29

find(predicate, thisArg?): undefined | number

(value, index, obj) => unknown

any

undefined | number

Tuple2.find

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:30


findIndex(predicate, thisArg?): number

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

(value, index, obj) => unknown

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.

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.

number

Tuple2.findIndex

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:41


findLast<S>(predicate, thisArg?): undefined | S

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

S extends number

(value, index, array) => value is S

findLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.

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.

undefined | S

Tuple2.findLast

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:29

findLast(predicate, thisArg?): undefined | number

(value, index, array) => unknown

any

undefined | number

Tuple2.findLast

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:30


findLastIndex(predicate, thisArg?): number

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

(value, index, array) => unknown

findLastIndex calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.

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.

number

Tuple2.findLastIndex

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:41


flat<A, D>(this, depth?): FlatArray<A, D>[]

Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.

A

D extends number = 1

A

D

The maximum recursion depth

FlatArray<A, D>[]

Tuple2.flat

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2019.array.d.ts:75


flatMap<U, This>(callback, thisArg?): U[]

Calls a defined callback function on each element of an array. Then, flattens the result into a new array. This is identical to a map followed by flat with depth 1.

U

This = undefined

(this, value, index, array) => U | readonly U[]

A function that accepts up to three arguments. The flatMap method calls the callback function one time for each element in the array.

This

An object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used as the this value.

U[]

Tuple2.flatMap

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2019.array.d.ts:64


forEach(callbackfn, thisArg?): void

Performs the specified action for each element in an array.

(value, index, array) => void

A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

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.

void

Tuple2.forEach

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1457


includes(searchElement, fromIndex?): boolean

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

number

The element to search for.

number

The position in this array at which to begin searching for searchElement.

boolean

Tuple2.includes

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2016.array.include.d.ts:25


indexOf(searchElement, fromIndex?): number

Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

number

Tuple2.indexOf

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1418


join(separator?): string

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

string

A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.

string

Tuple2.join

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1361


keys(): ArrayIterator<number>

Returns an iterable of keys in the array

ArrayIterator<number>

Tuple2.keys

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:88


lastIndexOf(searchElement, fromIndex?): number

Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

number

Tuple2.lastIndexOf

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1424


map<U>(callbackfn, thisArg?): U[]

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

U

(value, index, array) => U

A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

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.

U[]

Tuple2.map

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1463


mul(other): v2u

number

v2u

vecInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:66

mul(other): v2u

v2u

v2u

vecInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:67

mul(other): v2u

never

v2u

vecInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:68


pop(): undefined | number

Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple2.pop

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1339


push(…items): number

Appends new elements to the end of an array, and returns the new length of the array.

number[]

New elements to add to the array.

number

Tuple2.push

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1344


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.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

number

Tuple2.reduce

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1481

reduce(callbackfn, initialValue): number

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple2.reduce

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1482

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.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

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.

U

Tuple2.reduce

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1488


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.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

number

Tuple2.reduceRight

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1494

reduceRight(callbackfn, initialValue): number

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple2.reduceRight

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1495

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.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

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.

U

Tuple2.reduceRight

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1501


reverse(): number[]

Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.

number[]

Tuple2.reverse

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1366


shift(): undefined | number

Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple2.shift

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1371


slice(start?, end?): number[]

Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

number

The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.

number

The end index of the specified portion of the array. This is exclusive of the element at the index ‘end’. If end is undefined, then the slice extends to the end of the array.

number[]

Tuple2.slice

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1381


some(predicate, thisArg?): boolean

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

(value, index, array) => 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.

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.

boolean

Tuple2.some

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1451


sort(compareFn?): this

Sorts an array in place. This method mutates the array and returns a reference to the same array.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11,2,22,1].sort((a, b) => a - b)

this

Tuple2.sort

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1392


splice(start, deleteCount?): number[]

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

An array containing the elements that were deleted.

Tuple2.splice

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1399

splice(start, deleteCount, …items): number[]

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

Elements to insert into the array in place of the deleted elements.

number[]

An array containing the elements that were deleted.

Tuple2.splice

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1407


sub(other): v2u

number

v2u

vecInfixNotation.sub

packages/typegpu/src/data/wgslTypes.ts:63

sub(other): v2u

v2u

v2u

vecInfixNotation.sub

packages/typegpu/src/data/wgslTypes.ts:64


toLocaleString(): string

Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

string

Tuple2.toLocaleString

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1334

toLocaleString(locales, options?): string

string | string[]

NumberFormatOptions & DateTimeFormatOptions

string

Tuple2.toLocaleString

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:64


toReversed(): number[]

Returns a copy of an array with its elements reversed.

number[]

Tuple2.toReversed

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:46


toSorted(compareFn?): number[]

Returns a copy of an array with its elements sorted.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]

number[]

Tuple2.toSorted

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:57


toSpliced(start, deleteCount, …items): number[]

Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

Elements to insert into the copied array in place of the deleted elements.

number[]

The copied array.

Tuple2.toSpliced

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:66

toSpliced(start, deleteCount?): number[]

Copies an array and removes elements while returning the remaining elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

A copy of the original array with the remaining elements.

Tuple2.toSpliced

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:74


toString(): string

Returns a string representation of an array.

string

Tuple2.toString

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1330


unshift(…items): number

Inserts new elements at the start of an array, and returns the new length of the array.

number[]

Elements to insert at the start of the array.

number

Tuple2.unshift

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1412


values(): ArrayIterator<number>

Returns an iterable of values in the array

ArrayIterator<number>

Tuple2.values

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:93


with(index, value): number[]

Copies an array, then overwrites the value at the provided index with the given value. If the index is negative, then it replaces from the end of the array.

number

The index of the value to overwrite. If the index is negative, then it replaces from the end of the array.

number

The value to write into the copied array.

number[]

The copied array with the updated value.

Tuple2.with

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:85