JsonArray
Defined in: packages/@livestore/utils/dist/effect/Schema/index.d.ts:14
Extends
Section titled “Extends”ReadonlyArray<JsonValue>
Indexable
Section titled “Indexable”[n: number]: JsonValue
Properties
Section titled “Properties”[unscopables]
Section titled “[unscopables]”
readonly[unscopables]:object
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:107
Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.
Index Signature
Section titled “Index Signature”[key: number]: undefined | boolean
[iterator]?
Section titled “[iterator]?”
optional[iterator]:boolean
[unscopables]?
Section titled “[unscopables]?”
readonlyoptional[unscopables]:boolean
Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.
optionalat:boolean
concat?
Section titled “concat?”
optionalconcat:boolean
entries?
Section titled “entries?”
optionalentries:boolean
every?
Section titled “every?”
optionalevery:boolean
filter?
Section titled “filter?”
optionalfilter:boolean
optionalfind:boolean
findIndex?
Section titled “findIndex?”
optionalfindIndex:boolean
findLast?
Section titled “findLast?”
optionalfindLast:boolean
findLastIndex?
Section titled “findLastIndex?”
optionalfindLastIndex:boolean
optionalflat:boolean
flatMap?
Section titled “flatMap?”
optionalflatMap:boolean
forEach?
Section titled “forEach?”
optionalforEach:boolean
includes?
Section titled “includes?”
optionalincludes:boolean
indexOf?
Section titled “indexOf?”
optionalindexOf:boolean
optionaljoin:boolean
optionalkeys:boolean
lastIndexOf?
Section titled “lastIndexOf?”
optionallastIndexOf:boolean
length?
Section titled “length?”
readonlyoptionallength:boolean
Gets the length of the array. This is a number one higher than the highest element defined in an array.
optionalmap:boolean
reduce?
Section titled “reduce?”
optionalreduce:boolean
reduceRight?
Section titled “reduceRight?”
optionalreduceRight:boolean
slice?
Section titled “slice?”
optionalslice:boolean
optionalsome:boolean
toLocaleString?
Section titled “toLocaleString?”
optionaltoLocaleString:boolean
toReversed?
Section titled “toReversed?”
optionaltoReversed:boolean
toSorted?
Section titled “toSorted?”
optionaltoSorted:boolean
toSpliced?
Section titled “toSpliced?”
optionaltoSpliced:boolean
toString?
Section titled “toString?”
optionaltoString:boolean
values?
Section titled “values?”
optionalvalues:boolean
optionalwith:boolean
Inherited from
Section titled “Inherited from”ReadonlyArray.[unscopables]
length
Section titled “length”
readonlylength:number
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1192
Gets the length of the array. This is a number one higher than the highest element defined in an array.
Inherited from
Section titled “Inherited from”ReadonlyArray.length
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
ArrayIterator<JsonValue>
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:114
Iterator of values in the array.
Returns
Section titled “Returns”ArrayIterator<JsonValue>
Inherited from
Section titled “Inherited from”ReadonlyArray.[iterator]
at(
index):undefined|JsonValue
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.array.d.ts:32
Returns the item located at the specified index.
Parameters
Section titled “Parameters”number
The zero-based index of the desired code unit. A negative index will count back from the last item.
Returns
Section titled “Returns”undefined | JsonValue
Inherited from
Section titled “Inherited from”ReadonlyArray.at
concat()
Section titled “concat()”Call Signature
Section titled “Call Signature”concat(…
items):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1205
Combines two or more arrays.
Parameters
Section titled “Parameters”…ConcatArray<JsonValue>[]
Additional items to add to the end of array1.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.concat
Call Signature
Section titled “Call Signature”concat(…
items):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1210
Combines two or more arrays.
Parameters
Section titled “Parameters”…(JsonValue | ConcatArray<JsonValue>)[]
Additional items to add to the end of array1.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.concat
entries()
Section titled “entries()”entries():
ArrayIterator<[number,JsonValue]>
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:119
Returns an iterable of key, value pairs for every entry in the array
Returns
Section titled “Returns”ArrayIterator<[number, JsonValue]>
Inherited from
Section titled “Inherited from”ReadonlyArray.entries
every()
Section titled “every()”Call Signature
Section titled “Call Signature”every<
S>(predicate,thisArg?):this is readonly S[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1242
Determines whether all the members of an array satisfy the specified test.
Type Parameters
Section titled “Type Parameters”S extends JsonValue
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”this is readonly S[]
Inherited from
Section titled “Inherited from”ReadonlyArray.every
Call Signature
Section titled “Call Signature”every(
predicate,thisArg?):boolean
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1251
Determines whether all the members of an array satisfy the specified test.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”ReadonlyArray.every
filter()
Section titled “filter()”Call Signature
Section titled “Call Signature”filter<
S>(predicate,thisArg?):S[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1278
Returns the elements of an array that meet the condition specified in a callback function.
Type Parameters
Section titled “Type Parameters”S extends JsonValue
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”S[]
Inherited from
Section titled “Inherited from”ReadonlyArray.filter
Call Signature
Section titled “Call Signature”filter(
predicate,thisArg?):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1284
Returns the elements of an array that meet the condition specified in a callback function.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.filter
find()
Section titled “find()”Call Signature
Section titled “Call Signature”find<
S>(predicate,thisArg?):undefined|S
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts:352
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
Type Parameters
Section titled “Type Parameters”S extends JsonValue
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”undefined | S
Inherited from
Section titled “Inherited from”ReadonlyArray.find
Call Signature
Section titled “Call Signature”find(
predicate,thisArg?):undefined|JsonValue
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts:353
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, obj) => unknown
thisArg?
Section titled “thisArg?”any
Returns
Section titled “Returns”undefined | JsonValue
Inherited from
Section titled “Inherited from”ReadonlyArray.find
findIndex()
Section titled “findIndex()”findIndex(
predicate,thisArg?):number
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts:364
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”number
Inherited from
Section titled “Inherited from”ReadonlyArray.findIndex
findLast()
Section titled “findLast()”Call Signature
Section titled “Call Signature”findLast<
S>(predicate,thisArg?):undefined|S
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:98
Returns the value of the last element in the array where predicate is true, and undefined otherwise.
Type Parameters
Section titled “Type Parameters”S extends JsonValue
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”undefined | S
Inherited from
Section titled “Inherited from”ReadonlyArray.findLast
Call Signature
Section titled “Call Signature”findLast(
predicate,thisArg?):undefined|JsonValue
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:102
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => unknown
thisArg?
Section titled “thisArg?”any
Returns
Section titled “Returns”undefined | JsonValue
Inherited from
Section titled “Inherited from”ReadonlyArray.findLast
findLastIndex()
Section titled “findLastIndex()”findLastIndex(
predicate,thisArg?):number
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:116
Returns the index of the last element in the array where predicate is true, and -1 otherwise.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”number
Inherited from
Section titled “Inherited from”ReadonlyArray.findLastIndex
flat()
Section titled “flat()”flat<
A,D>(this,depth?):FlatArray<A,D>[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts:47
Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.
Type Parameters
Section titled “Type Parameters”A
D extends number = 1
Parameters
Section titled “Parameters”A
depth?
Section titled “depth?”D
The maximum recursion depth
Returns
Section titled “Returns”FlatArray<A, D>[]
Inherited from
Section titled “Inherited from”ReadonlyArray.flat
flatMap()
Section titled “flatMap()”flatMap<
U,This>(callback,thisArg?):U[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts:36
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.
Type Parameters
Section titled “Type Parameters”U
This = undefined
Parameters
Section titled “Parameters”callback
Section titled “callback”(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.
thisArg?
Section titled “thisArg?”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.
Returns
Section titled “Returns”U[]
Inherited from
Section titled “Inherited from”ReadonlyArray.flatMap
forEach()
Section titled “forEach()”forEach(
callbackfn,thisArg?):void
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1266
Performs the specified action for each element in an array.
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(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.
thisArg?
Section titled “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
Section titled “Returns”void
Inherited from
Section titled “Inherited from”ReadonlyArray.forEach
includes()
Section titled “includes()”includes(
searchElement,fromIndex?):boolean
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts:34
Determines whether an array includes a certain element, returning true or false as appropriate.
Parameters
Section titled “Parameters”searchElement
Section titled “searchElement”The element to search for.
fromIndex?
Section titled “fromIndex?”number
The position in this array at which to begin searching for searchElement.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”ReadonlyArray.includes
indexOf()
Section titled “indexOf()”indexOf(
searchElement,fromIndex?):number
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1227
Returns the index of the first occurrence of a value in an array.
Parameters
Section titled “Parameters”searchElement
Section titled “searchElement”The value to locate in the array.
fromIndex?
Section titled “fromIndex?”number
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”ReadonlyArray.indexOf
join()
Section titled “join()”join(
separator?):string
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1215
Adds all the elements of an array separated by the specified separator string.
Parameters
Section titled “Parameters”separator?
Section titled “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
Section titled “Returns”string
Inherited from
Section titled “Inherited from”ReadonlyArray.join
keys()
Section titled “keys()”keys():
ArrayIterator<number>
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:124
Returns an iterable of keys in the array
Returns
Section titled “Returns”ArrayIterator<number>
Inherited from
Section titled “Inherited from”ReadonlyArray.keys
lastIndexOf()
Section titled “lastIndexOf()”lastIndexOf(
searchElement,fromIndex?):number
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1233
Returns the index of the last occurrence of a specified value in an array.
Parameters
Section titled “Parameters”searchElement
Section titled “searchElement”The value to locate in the array.
fromIndex?
Section titled “fromIndex?”number
The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”ReadonlyArray.lastIndexOf
map<
U>(callbackfn,thisArg?):U[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1272
Calls a defined callback function on each element of an array, and returns an array that contains the results.
Type Parameters
Section titled “Type Parameters”U
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(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.
thisArg?
Section titled “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
Section titled “Returns”U[]
Inherited from
Section titled “Inherited from”ReadonlyArray.map
reduce()
Section titled “reduce()”Call Signature
Section titled “Call Signature”reduce(
callbackfn):JsonValue
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1290
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
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => JsonValue
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.reduce
Call Signature
Section titled “Call Signature”reduce(
callbackfn,initialValue):JsonValue
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1291
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => JsonValue
initialValue
Section titled “initialValue”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.reduce
Call Signature
Section titled “Call Signature”reduce<
U>(callbackfn,initialValue):U
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1297
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
Section titled “Type Parameters”U
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(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.
initialValue
Section titled “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
Section titled “Returns”U
Inherited from
Section titled “Inherited from”ReadonlyArray.reduce
reduceRight()
Section titled “reduceRight()”Call Signature
Section titled “Call Signature”reduceRight(
callbackfn):JsonValue
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1303
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
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => JsonValue
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.reduceRight
Call Signature
Section titled “Call Signature”reduceRight(
callbackfn,initialValue):JsonValue
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1304
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => JsonValue
initialValue
Section titled “initialValue”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.reduceRight
Call Signature
Section titled “Call Signature”reduceRight<
U>(callbackfn,initialValue):U
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1310
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
Section titled “Type Parameters”U
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(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.
initialValue
Section titled “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
Section titled “Returns”U
Inherited from
Section titled “Inherited from”ReadonlyArray.reduceRight
slice()
Section titled “slice()”slice(
start?,end?):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1221
Returns a section of an array.
Parameters
Section titled “Parameters”start?
Section titled “start?”number
The beginning of the specified portion of the array.
number
The end of the specified portion of the array. This is exclusive of the element at the index ‘end’.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.slice
some()
Section titled “some()”some(
predicate,thisArg?):boolean
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1260
Determines whether the specified callback function returns true for any element of an array.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(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.
thisArg?
Section titled “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
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”ReadonlyArray.some
toLocaleString()
Section titled “toLocaleString()”Call Signature
Section titled “Call Signature”toLocaleString():
string
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1200
Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”ReadonlyArray.toLocaleString
Call Signature
Section titled “Call Signature”toLocaleString(
locales,options?):string
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts:366
Parameters
Section titled “Parameters”locales
Section titled “locales”string | string[]
options?
Section titled “options?”NumberFormatOptions & DateTimeFormatOptions
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”ReadonlyArray.toLocaleString
toReversed()
Section titled “toReversed()”toReversed():
JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:124
Copies the array and returns the copied array with all of its elements reversed.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.toReversed
toSorted()
Section titled “toSorted()”toSorted(
compareFn?):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:135
Copies and sorts the array.
Parameters
Section titled “Parameters”compareFn?
Section titled “compareFn?”(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]Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ReadonlyArray.toSorted
toSpliced()
Section titled “toSpliced()”Call Signature
Section titled “Call Signature”toSpliced(
start,deleteCount, …items):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:144
Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.
Parameters
Section titled “Parameters”number
The zero-based location in the array from which to start removing elements.
deleteCount
Section titled “deleteCount”number
The number of elements to remove.
…JsonValue[]
Elements to insert into the copied array in place of the deleted elements.
Returns
Section titled “Returns”A copy of the original array with the remaining elements.
Inherited from
Section titled “Inherited from”ReadonlyArray.toSpliced
Call Signature
Section titled “Call Signature”toSpliced(
start,deleteCount?):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:152
Copies an array and removes elements while returning the remaining elements.
Parameters
Section titled “Parameters”number
The zero-based location in the array from which to start removing elements.
deleteCount?
Section titled “deleteCount?”number
The number of elements to remove.
Returns
Section titled “Returns”A copy of the original array with the remaining elements.
Inherited from
Section titled “Inherited from”ReadonlyArray.toSpliced
toString()
Section titled “toString()”toString():
string
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1196
Returns a string representation of an array.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”ReadonlyArray.toString
values()
Section titled “values()”values():
ArrayIterator<JsonValue>
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:129
Returns an iterable of values in the array
Returns
Section titled “Returns”ArrayIterator<JsonValue>
Inherited from
Section titled “Inherited from”ReadonlyArray.values
with()
Section titled “with()”with(
index,value):JsonValue[]
Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:163
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
Parameters
Section titled “Parameters”number
The index of the value to overwrite. If the index is negative, then it replaces from the end of the array.
The value to insert into the copied array.
Returns
Section titled “Returns”A copy of the original array with the inserted value.
Inherited from
Section titled “Inherited from”ReadonlyArray.with