API Reference > ui-framework > Utilities > DeepReadonlyArray DeepReadonlyArray<T> Interface TypeScript doesn't actually allow recursive type aliases, so these are just sort of a hack to make DeepReadonly work Extends ReadonlyArray<DeepReadonly<T>> Inherited methods Name Inherited from Description Symbol.iterator(): IterableIterator<DeepReadonly<T>> ReadonlyArray.Symbol Iterator of values in the array. concat(...items: ConcatArray<DeepReadonly<T>>[]): DeepReadonly<T>[] ReadonlyArray<DeepReadonly<T>> Combines two or more arrays. concat(...items: T | ConcatArray<T>[]): DeepReadonly<T>[] ReadonlyArray<DeepReadonly<T>> Combines two or more arrays. entries(): IterableIterator<[number, DeepReadonly<T>]> ReadonlyArray<DeepReadonly<T>> Returns an iterable of key, value pairs for every entry in the array every(callbackfn: (value: DeepReadonly<T>, index: number, array: undefined) => unknown, thisArg?: any): boolean ReadonlyArray<DeepReadonly<T>> Determines whether all the members of an array satisfy the specified test. filter<S extends DeepReadonly<T>>(callbackfn: (value: DeepReadonly<T>, index: number, array: undefined) => value is S extends DeepReadonly<T>, thisArg?: any): S extends DeepReadonly<T>[] ReadonlyArray<DeepReadonly<T>> Returns the elements of an array that meet the condition specified in a callback function. filter(callbackfn: (value: DeepReadonly<T>, index: number, array: undefined) => unknown, thisArg?: any): DeepReadonly<T>[] ReadonlyArray<DeepReadonly<T>> Returns the elements of an array that meet the condition specified in a callback function. find<S extends DeepReadonly<T>>(predicate: (this: void, value: DeepReadonly<T>, index: number, obj: undefined) => value is S extends DeepReadonly<T>, thisArg?: any): S extends DeepReadonly<T> | undefined ReadonlyArray<DeepReadonly<T>> Returns the value of the first element in the array where predicate is true, and undefined find(predicate: (value: DeepReadonly<T>, index: number, obj: undefined) => unknown, thisArg?: any): DeepReadonly<T> | undefined ReadonlyArray<DeepReadonly<T>> findIndex(predicate: (value: DeepReadonly<T>, index: number, obj: undefined) => unknown, thisArg?: any): number ReadonlyArray<DeepReadonly<T>> Returns the index of the first element in the array where predicate is true, and -1 forEach(callbackfn: (value: DeepReadonly<T>, index: number, array: undefined) => void, thisArg?: any): void ReadonlyArray<DeepReadonly<T>> Performs the specified action for each element in an array. includes(searchElement: DeepReadonly<T>, fromIndex?: number): boolean ReadonlyArray<DeepReadonly<T>> Determines whether an array includes a certain element, returning true or false as appropriate. indexOf(searchElement: DeepReadonly<T>, fromIndex?: number): number ReadonlyArray<DeepReadonly<T>> Returns the index of the first occurrence of a value in an array. join(separator?: string): string ReadonlyArray<DeepReadonly<T>> Adds all the elements of an array separated by the specified separator string. keys(): IterableIterator<number> ReadonlyArray<DeepReadonly<T>> Returns an iterable of keys in the array lastIndexOf(searchElement: DeepReadonly<T>, fromIndex?: number): number ReadonlyArray<DeepReadonly<T>> Returns the index of the last occurrence of a specified value in an array. map<U>(callbackfn: (value: DeepReadonly<T>, index: number, array: undefined) => U, thisArg?: any): U[] ReadonlyArray<DeepReadonly<T>> Calls a defined callback function on each element of an array, and returns an array that contains the results. reduce(callbackfn: (previousValue: DeepReadonly<T>, currentValue: DeepReadonly<T>, currentIndex: number, array: undefined) => DeepReadonly<T>): DeepReadonly<T> ReadonlyArray<DeepReadonly<T>> Calls the specified callback function for all the elements in an array. reduce(callbackfn: (previousValue: DeepReadonly<T>, currentValue: DeepReadonly<T>, currentIndex: number, array: undefined) => DeepReadonly<T>, initialValue: DeepReadonly<T>): DeepReadonly<T> ReadonlyArray<DeepReadonly<T>> reduce<U>(callbackfn: (previousValue: U, currentValue: DeepReadonly<T>, currentIndex: number, array: undefined) => U, initialValue: U): U ReadonlyArray<DeepReadonly<T>> Calls the specified callback function for all the elements in an array. reduceRight(callbackfn: (previousValue: DeepReadonly<T>, currentValue: DeepReadonly<T>, currentIndex: number, array: undefined) => DeepReadonly<T>): DeepReadonly<T> ReadonlyArray<DeepReadonly<T>> Calls the specified callback function for all the elements in an array, in descending order. reduceRight(callbackfn: (previousValue: DeepReadonly<T>, currentValue: DeepReadonly<T>, currentIndex: number, array: undefined) => DeepReadonly<T>, initialValue: DeepReadonly<T>): DeepReadonly<T> ReadonlyArray<DeepReadonly<T>> reduceRight<U>(callbackfn: (previousValue: U, currentValue: DeepReadonly<T>, currentIndex: number, array: undefined) => U, initialValue: U): U ReadonlyArray<DeepReadonly<T>> Calls the specified callback function for all the elements in an array, in descending order. slice(start?: number, end?: number): DeepReadonly<T>[] ReadonlyArray<DeepReadonly<T>> Returns a section of an array. some(callbackfn: (value: DeepReadonly<T>, index: number, array: undefined) => unknown, thisArg?: any): boolean ReadonlyArray<DeepReadonly<T>> Determines whether the specified callback function returns true for any element of an array. toLocaleString(): string ReadonlyArray<DeepReadonly<T>> Returns a string representation of an array. toString(): string ReadonlyArray<DeepReadonly<T>> Returns a string representation of an array. values(): IterableIterator<DeepReadonly<T>> ReadonlyArray<DeepReadonly<T>> Returns an iterable of values in the array Inherited properties Name Type Inherited from Description length number ReadonlyArray<DeepReadonly<T>> Gets the length of the array. Defined in ui/framework/src/ui-framework/utils/redux-ts.ts Line 32 Last Updated: 13 June, 2024