Skip to content

JsonArray

Defined in: packages/@livestore/utils/dist/effect/Schema/index.d.ts:14

[n: number]: JsonValue

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.

[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 entries: boolean

optional every: 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

readonly optional length: boolean

Gets the length of the array. This is a number one higher than the highest element defined in an array.

optional map: boolean

optional reduce: boolean

optional reduceRight: boolean

optional slice: boolean

optional some: boolean

optional toLocaleString: boolean

optional toReversed: boolean

optional toSorted: boolean

optional toSpliced: boolean

optional toString: boolean

optional values: boolean

optional with: boolean

ReadonlyArray.[unscopables]


readonly length: 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.

ReadonlyArray.length

[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.

ArrayIterator<JsonValue>

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.

number

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

undefined | JsonValue

ReadonlyArray.at


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.

ConcatArray<JsonValue>[]

Additional items to add to the end of array1.

JsonValue[]

ReadonlyArray.concat

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.

…(JsonValue | ConcatArray<JsonValue>)[]

Additional items to add to the end of array1.

JsonValue[]

ReadonlyArray.concat


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

ArrayIterator<[number, JsonValue]>

ReadonlyArray.entries


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.

S extends JsonValue

(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 readonly S[]

ReadonlyArray.every

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.

(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

ReadonlyArray.every


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.

S extends JsonValue

(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[]

ReadonlyArray.filter

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.

(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.

JsonValue[]

ReadonlyArray.filter


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.

S extends JsonValue

(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

ReadonlyArray.find

find(predicate, thisArg?): undefined | JsonValue

Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts:353

(value, index, obj) => unknown

any

undefined | JsonValue

ReadonlyArray.find


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.

(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

ReadonlyArray.findIndex


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.

S extends JsonValue

(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

ReadonlyArray.findLast

findLast(predicate, thisArg?): undefined | JsonValue

Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts:102

(value, index, array) => unknown

any

undefined | JsonValue

ReadonlyArray.findLast


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.

(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

ReadonlyArray.findLastIndex


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.

A

D extends number = 1

A

D

The maximum recursion depth

FlatArray<A, D>[]

ReadonlyArray.flat


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.

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[]

ReadonlyArray.flatMap


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.

(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

ReadonlyArray.forEach


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.

JsonValue

The element to search for.

number

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

boolean

ReadonlyArray.includes


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.

JsonValue

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

ReadonlyArray.indexOf


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.

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.

string

ReadonlyArray.join


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

ArrayIterator<number>

ReadonlyArray.keys


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.

JsonValue

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 the last index in the array.

number

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.

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[]

ReadonlyArray.map


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.

(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.

JsonValue

ReadonlyArray.reduce

reduce(callbackfn, initialValue): JsonValue

Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1291

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

JsonValue

JsonValue

ReadonlyArray.reduce

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.

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

ReadonlyArray.reduce


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.

(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.

JsonValue

ReadonlyArray.reduceRight

reduceRight(callbackfn, initialValue): JsonValue

Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1304

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

JsonValue

JsonValue

ReadonlyArray.reduceRight

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.

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

ReadonlyArray.reduceRight


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.

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’.

JsonValue[]

ReadonlyArray.slice


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.

(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

ReadonlyArray.some


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.

string

ReadonlyArray.toLocaleString

toLocaleString(locales, options?): string

Defined in: node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts:366

string | string[]

NumberFormatOptions & DateTimeFormatOptions

string

ReadonlyArray.toLocaleString


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.

JsonValue[]

ReadonlyArray.toReversed


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.

(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]

JsonValue[]

ReadonlyArray.toSorted


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.

number

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

number

The number of elements to remove.

JsonValue[]

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

JsonValue[]

A copy of the original array with the remaining elements.

ReadonlyArray.toSpliced

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.

number

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

number

The number of elements to remove.

JsonValue[]

A copy of the original array with the remaining elements.

ReadonlyArray.toSpliced


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.

string

ReadonlyArray.toString


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

ArrayIterator<JsonValue>

ReadonlyArray.values


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

number

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

JsonValue

The value to insert into the copied array.

JsonValue[]

A copy of the original array with the inserted value.

ReadonlyArray.with