다음을 통해 공유


CachesListResult interface

Extends

Array<Cache>

속성

Array
length

배열의 길이를 가져오거나 설정합니다. 이는 배열에 정의된 가장 높은 요소보다 높은 숫자 1입니다.

nextLink

다음 캐시 목록 결과 집합(있는 경우)을 가져오는 URL입니다.

메서드

at(number)

정수 값을 사용하고 해당 인덱스에 있는 항목을 반환하여 양의 정수와 음수 정수가 허용됩니다. 음수 정수는 배열의 마지막 항목에서 다시 계산됩니다.

concat(ConcatArray<Cache>[])

둘 이상의 배열을 결합합니다.

concat(T | ConcatArray<T>[])

둘 이상의 배열을 결합합니다.

copyWithin(number, number, undefined | number)

시작 및 끝으로 식별된 배열의 섹션을 위치 대상에서 시작하는 동일한 배열로 복사한 후 이 개체를 반환합니다.

entries()

배열의 모든 항목에 대해 반복 가능한 키, 값 쌍을 반환합니다.

every((value: Cache, index: number, array: Cache[]) => unknown, any)

배열의 모든 멤버가 지정된 테스트를 충족하는지 여부를 결정합니다.

fill(Cache, undefined | number, undefined | number)

시작 및 끝으로 식별되는 섹션을 값으로 채운 후 이 개체를 반환합니다.

filter((value: Cache, index: number, array: Cache[]) => unknown, any)

콜백 함수에 지정된 조건을 충족하는 배열의 요소를 반환합니다.

filter<S>((value: Cache, index: number, array: Cache[]) => boolean, any)

콜백 함수에 지정된 조건을 충족하는 배열의 요소를 반환합니다.

find((value: Cache, index: number, obj: Cache[]) => unknown, any)
find<S>((this: void, value: Cache, index: number, obj: Cache[]) => boolean, any)

조건자가 true이고 정의되지 않은 배열의 첫 번째 요소 값을 반환합니다.

findIndex((value: Cache, index: number, obj: Cache[]) => unknown, any)

조건자가 true인 배열에서 첫 번째 요소의 인덱스가 반환되고, 그렇지 않으면 -1.

flat<U>(undefined | number)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다. 깊이가 제공되지 않으면 플랫 메서드는 기본적으로 깊이 1로 설정됩니다.

flat<U>(U[], 0)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flat<U>(U[][], undefined | 1)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flat<U>(U[][][], 2)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flat<U>(U[][][][], 3)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flat<U>(U[][][][][], 4)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flat<U>(U[][][][][][], 5)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flat<U>(U[][][][][][][], 6)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flat<U>(U[][][][][][][][], 7)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

flatMap<U>((this: This, value: Cache, index: number, array: Cache[]) => U | ReadonlyArray<U>, This)

배열의 각 요소에 대해 정의된 콜백 함수를 호출합니다. 그런 다음 결과를 새 배열로 평면화합니다. 이는 맵과 동일하고 깊이가 1인 플랫이 뒤따릅니다.

forEach((value: Cache, index: number, array: Cache[]) => void, any)

배열의 각 요소에 대해 지정된 작업을 수행합니다.

includes(Cache, undefined | number)

배열에 특정 요소가 포함되어 있는지 여부를 확인하여 true 또는 false를 적절하게 반환합니다.

indexOf(Cache, undefined | number)

배열에서 값이 처음 나타나는 인덱스 값을 반환합니다.

join(undefined | string)

지정된 구분 기호 문자열로 구분된 배열의 모든 요소를 추가합니다.

keys()

배열에서 반복 가능한 키를 반환합니다.

lastIndexOf(Cache, undefined | number)

배열에서 지정된 값이 마지막으로 발생한 인덱스 값을 반환합니다.

map<U>((value: Cache, index: number, array: Cache[]) => U, any)

배열의 각 요소에 대해 정의된 콜백 함수를 호출하고 결과를 포함하는 배열을 반환합니다.

pop()

배열에서 마지막 요소를 제거하고 반환합니다.

push(Cache[])

배열에 새 요소를 추가하고 배열의 새 길이를 반환합니다.

reduce((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache)

배열의 모든 요소에 대해 지정된 콜백 함수를 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

reduce((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache, Cache)
reduce<U>((previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U, U)

배열의 모든 요소에 대해 지정된 콜백 함수를 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

reduceRight((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache)

배열의 모든 요소에 대해 지정된 콜백 함수를 내림차순으로 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

reduceRight((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache, Cache)
reduceRight<U>((previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U, U)

배열의 모든 요소에 대해 지정된 콜백 함수를 내림차순으로 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

reverse()

배열의 요소를 반대로 바뀝니다.

shift()

배열에서 첫 번째 요소를 제거하고 반환합니다.

slice(undefined | number, undefined | number)

배열의 섹션을 반환합니다.

some((value: Cache, index: number, array: Cache[]) => unknown, any)

지정된 콜백 함수가 배열의 요소에 대해 true를 반환하는지 여부를 결정합니다.

sort(undefined | (a: Cache, b: Cache) => number)

배열을 정렬합니다.

splice(number, number, Cache[])

배열에서 요소를 제거하고 필요한 경우 해당 위치에 새 요소를 삽입하고 삭제된 요소를 반환합니다.

splice(number, undefined | number)

배열에서 요소를 제거하고 필요한 경우 해당 위치에 새 요소를 삽입하고 삭제된 요소를 반환합니다.

toLocaleString()

배열의 문자열 표현을 반환합니다. 요소는 toLocalString 메서드를 사용하여 문자열로 변환됩니다.

toString()

배열의 문자열 표현을 반환합니다.

unshift(Cache[])

배열의 시작 부분에 새 요소를 삽입합니다.

values()

배열에서 반복 가능한 값을 반환합니다.

속성 세부 정보

Array

Array: ArrayConstructor

속성 값

ArrayConstructor

length

배열의 길이를 가져오거나 설정합니다. 이는 배열에 정의된 가장 높은 요소보다 높은 숫자 1입니다.

length: number

속성 값

number

다음 캐시 목록 결과 집합(있는 경우)을 가져오는 URL입니다.

nextLink?: undefined | string

속성 값

undefined | string

메서드 세부 정보

at(number)

정수 값을 사용하고 해당 인덱스에 있는 항목을 반환하여 양의 정수와 음수 정수가 허용됩니다. 음수 정수는 배열의 마지막 항목에서 다시 계산됩니다.

function at(index: number)

매개 변수

index

number

반환

Cache | undefined

concat(ConcatArray<Cache>[])

둘 이상의 배열을 결합합니다.

function concat(items: ConcatArray<Cache>[])

매개 변수

items

ConcatArray<Cache>[]

array1의 끝에 추가할 추가 항목입니다.

반환

Cache[]

concat(T | ConcatArray<T>[])

둘 이상의 배열을 결합합니다.

function concat(items: T | ConcatArray<T>[])

매개 변수

items

T | ConcatArray<T>[]

array1의 끝에 추가할 추가 항목입니다.

반환

Cache[]

copyWithin(number, number, undefined | number)

시작 및 끝으로 식별된 배열의 섹션을 위치 대상에서 시작하는 동일한 배열로 복사한 후 이 개체를 반환합니다.

function copyWithin(target: number, start: number, end?: undefined | number)

매개 변수

target

number

대상이 음수이면 길이가 배열의 길이인 length+target으로 처리됩니다.

start

number

시작이 음수이면 length+start로 처리됩니다. end가 음수이면 length+end로 처리됩니다.

end

undefined | number

지정하지 않으면 이 개체의 길이가 기본값으로 사용됩니다.

반환

this

entries()

배열의 모든 항목에 대해 반복 가능한 키, 값 쌍을 반환합니다.

function entries()

반환

IterableIterator<Object>

every((value: Cache, index: number, array: Cache[]) => unknown, any)

배열의 모든 멤버가 지정된 테스트를 충족하는지 여부를 결정합니다.

function every(callbackfn: (value: Cache, index: number, array: Cache[]) => unknown, thisArg?: any)

매개 변수

callbackfn

(value: Cache, index: number, array: Cache[]) => unknown

최대 3개의 인수를 허용하는 함수입니다. 모든 메서드는 callbackfn이 false를 반환하거나 배열의 끝까지 array1의 각 요소에 대해 콜백fn 함수를 호출합니다.

thisArg

any

이 키워드가 callbackfn 함수에서 참조할 수 있는 개체입니다. thisArg를 생략하면 정의되지 않은 값이 이 값으로 사용됩니다.

반환

boolean

fill(Cache, undefined | number, undefined | number)

시작 및 끝으로 식별되는 섹션을 값으로 채운 후 이 개체를 반환합니다.

function fill(value: Cache, start?: undefined | number, end?: undefined | number)

매개 변수

value
Cache

배열 섹션을 채울 값

start

undefined | number

인덱스로 배열 채우기를 시작합니다. start가 음수이면 길이가 배열의 길이인 length+start로 처리됩니다.

end

undefined | number

배열 채우기를 중지하는 인덱스입니다. end가 음수이면 length+end로 처리됩니다.

반환

this

filter((value: Cache, index: number, array: Cache[]) => unknown, any)

콜백 함수에 지정된 조건을 충족하는 배열의 요소를 반환합니다.

function filter(callbackfn: (value: Cache, index: number, array: Cache[]) => unknown, thisArg?: any)

매개 변수

callbackfn

(value: Cache, index: number, array: Cache[]) => unknown

최대 3개의 인수를 허용하는 함수입니다. 필터 메서드는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

thisArg

any

이 키워드가 callbackfn 함수에서 참조할 수 있는 개체입니다. thisArg를 생략하면 정의되지 않은 값이 이 값으로 사용됩니다.

반환

Cache[]

filter<S>((value: Cache, index: number, array: Cache[]) => boolean, any)

콜백 함수에 지정된 조건을 충족하는 배열의 요소를 반환합니다.

function filter<S>(callbackfn: (value: Cache, index: number, array: Cache[]) => boolean, thisArg?: any)

매개 변수

callbackfn

(value: Cache, index: number, array: Cache[]) => boolean

최대 3개의 인수를 허용하는 함수입니다. 필터 메서드는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

thisArg

any

이 키워드가 callbackfn 함수에서 참조할 수 있는 개체입니다. thisArg를 생략하면 정의되지 않은 값이 이 값으로 사용됩니다.

반환

S[]

find((value: Cache, index: number, obj: Cache[]) => unknown, any)

function find(predicate: (value: Cache, index: number, obj: Cache[]) => unknown, thisArg?: any)

매개 변수

predicate

(value: Cache, index: number, obj: Cache[]) => unknown

thisArg

any

반환

Cache | undefined

find<S>((this: void, value: Cache, index: number, obj: Cache[]) => boolean, any)

조건자가 true이고 정의되지 않은 배열의 첫 번째 요소 값을 반환합니다.

function find<S>(predicate: (this: void, value: Cache, index: number, obj: Cache[]) => boolean, thisArg?: any)

매개 변수

predicate

(this: void, value: Cache, index: number, obj: Cache[]) => boolean

조건자가 true를 반환하는 호출을 찾을 때까지 배열의 각 요소에 대한 호출 조건자를 오름차순으로 찾습니다. 이러한 요소를 찾으면 해당 요소 값이 즉시 반환됩니다. 그렇지 않으면 정의되지 않은 반환을 찾습니다.

thisArg

any

제공된 경우 조건자의 각 호출에 대해 이 값으로 사용됩니다. 제공되지 않으면 정의되지 않은 값이 대신 사용됩니다.

반환

S | undefined

findIndex((value: Cache, index: number, obj: Cache[]) => unknown, any)

조건자가 true인 배열에서 첫 번째 요소의 인덱스가 반환되고, 그렇지 않으면 -1.

function findIndex(predicate: (value: Cache, index: number, obj: Cache[]) => unknown, thisArg?: any)

매개 변수

predicate

(value: Cache, index: number, obj: Cache[]) => unknown

조건자가 true를 반환하는 호출을 찾을 때까지 배열의 각 요소에 대한 호출 조건자를 오름차순으로 찾습니다. 이러한 요소가 발견되면 findIndex는 해당 요소 인덱스를 즉시 반환합니다. 그렇지 않으면 findIndex는 -1을 반환합니다.

thisArg

any

제공된 경우 조건자의 각 호출에 대해 이 값으로 사용됩니다. 제공되지 않으면 정의되지 않은 값이 대신 사용됩니다.

반환

number

flat<U>(undefined | number)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다. 깊이가 제공되지 않으면 플랫 메서드는 기본적으로 깊이 1로 설정됩니다.

function flat<U>(depth?: undefined | number)

매개 변수

depth

undefined | number

최대 재귀 깊이

반환

any[]

flat<U>(U[], 0)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[], depth: 0)

매개 변수

this

U[]

depth

0

최대 재귀 깊이

반환

U[]

flat<U>(U[][], undefined | 1)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[][], depth?: undefined | 1)

매개 변수

this

U[][]

depth

undefined | 1

최대 재귀 깊이

반환

U[]

flat<U>(U[][][], 2)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[][][], depth: 2)

매개 변수

this

U[][][]

depth

2

최대 재귀 깊이

반환

U[]

flat<U>(U[][][][], 3)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[][][][], depth: 3)

매개 변수

this

U[][][][]

depth

3

최대 재귀 깊이

반환

U[]

flat<U>(U[][][][][], 4)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[][][][][], depth: 4)

매개 변수

this

U[][][][][]

depth

4

최대 재귀 깊이

반환

U[]

flat<U>(U[][][][][][], 5)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[][][][][][], depth: 5)

매개 변수

this

U[][][][][][]

depth

5

최대 재귀 깊이

반환

U[]

flat<U>(U[][][][][][][], 6)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[][][][][][][], depth: 6)

매개 변수

this

U[][][][][][][]

depth

6

최대 재귀 깊이

반환

U[]

flat<U>(U[][][][][][][][], 7)

모든 하위 배열 요소가 지정된 깊이까지 재귀적으로 연결된 새 배열을 반환합니다.

function flat<U>(this: U[][][][][][][][], depth: 7)

매개 변수

this

U[][][][][][][][]

depth

7

최대 재귀 깊이

반환

U[]

flatMap<U>((this: This, value: Cache, index: number, array: Cache[]) => U | ReadonlyArray<U>, This)

배열의 각 요소에 대해 정의된 콜백 함수를 호출합니다. 그런 다음 결과를 새 배열로 평면화합니다. 이는 맵과 동일하고 깊이가 1인 플랫이 뒤따릅니다.

function flatMap<U>(callback: (this: This, value: Cache, index: number, array: Cache[]) => U | ReadonlyArray<U>, thisArg?: This)

매개 변수

callback

(this: This, value: Cache, index: number, array: Cache[]) => U | ReadonlyArray<U>

최대 3개의 인수를 허용하는 함수입니다. flatMap 메서드는 배열의 각 요소에 대해 콜백 함수를 한 번 호출합니다.

thisArg

This

이 키워드가 콜백 함수에서 참조할 수 있는 개체입니다. thisArg를 생략하면 정의되지 않은 값이 이 값으로 사용됩니다.

반환

U[]

forEach((value: Cache, index: number, array: Cache[]) => void, any)

배열의 각 요소에 대해 지정된 작업을 수행합니다.

function forEach(callbackfn: (value: Cache, index: number, array: Cache[]) => void, thisArg?: any)

매개 변수

callbackfn

(value: Cache, index: number, array: Cache[]) => void

최대 3개의 인수를 허용하는 함수입니다. forEach는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

thisArg

any

이 키워드가 callbackfn 함수에서 참조할 수 있는 개체입니다. thisArg를 생략하면 정의되지 않은 값이 이 값으로 사용됩니다.

includes(Cache, undefined | number)

배열에 특정 요소가 포함되어 있는지 여부를 확인하여 true 또는 false를 적절하게 반환합니다.

function includes(searchElement: Cache, fromIndex?: undefined | number)

매개 변수

searchElement
Cache

검색할 요소입니다.

fromIndex

undefined | number

searchElement 검색을 시작할 이 배열의 위치입니다.

반환

boolean

indexOf(Cache, undefined | number)

배열에서 값이 처음 나타나는 인덱스 값을 반환합니다.

function indexOf(searchElement: Cache, fromIndex?: undefined | number)

매개 변수

searchElement
Cache

배열에서 찾을 값입니다.

fromIndex

undefined | number

검색을 시작할 배열 인덱스입니다. fromIndex를 생략하면 인덱스 0에서 검색이 시작됩니다.

반환

number

join(undefined | string)

지정된 구분 기호 문자열로 구분된 배열의 모든 요소를 추가합니다.

function join(separator?: undefined | string)

매개 변수

separator

undefined | string

배열의 한 요소를 결과 문자열의 다음 요소와 구분하는 데 사용되는 문자열입니다. 생략하면 배열 요소가 쉼표로 구분됩니다.

반환

string

keys()

배열에서 반복 가능한 키를 반환합니다.

function keys()

반환

IterableIterator<number>

lastIndexOf(Cache, undefined | number)

배열에서 지정된 값이 마지막으로 발생한 인덱스 값을 반환합니다.

function lastIndexOf(searchElement: Cache, fromIndex?: undefined | number)

매개 변수

searchElement
Cache

배열에서 찾을 값입니다.

fromIndex

undefined | number

검색을 시작할 배열 인덱스입니다. fromIndex를 생략하면 배열의 마지막 인덱스에서 검색이 시작됩니다.

반환

number

map<U>((value: Cache, index: number, array: Cache[]) => U, any)

배열의 각 요소에 대해 정의된 콜백 함수를 호출하고 결과를 포함하는 배열을 반환합니다.

function map<U>(callbackfn: (value: Cache, index: number, array: Cache[]) => U, thisArg?: any)

매개 변수

callbackfn

(value: Cache, index: number, array: Cache[]) => U

최대 3개의 인수를 허용하는 함수입니다. map 메서드는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

thisArg

any

이 키워드가 callbackfn 함수에서 참조할 수 있는 개체입니다. thisArg를 생략하면 정의되지 않은 값이 이 값으로 사용됩니다.

반환

U[]

pop()

배열에서 마지막 요소를 제거하고 반환합니다.

function pop()

반환

Cache | undefined

push(Cache[])

배열에 새 요소를 추가하고 배열의 새 길이를 반환합니다.

function push(items: Cache[])

매개 변수

items

Cache[]

배열의 새 요소입니다.

반환

number

reduce((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache)

배열의 모든 요소에 대해 지정된 콜백 함수를 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

function reduce(callbackfn: (previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache)

매개 변수

callbackfn

(previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache

최대 4개의 인수를 허용하는 함수입니다. reduce 메서드는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

반환

reduce((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache, Cache)

function reduce(callbackfn: (previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache, initialValue: Cache)

매개 변수

callbackfn

(previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache

initialValue
Cache

반환

reduce<U>((previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U, U)

배열의 모든 요소에 대해 지정된 콜백 함수를 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

function reduce<U>(callbackfn: (previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U, initialValue: U)

매개 변수

callbackfn

(previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U

최대 4개의 인수를 허용하는 함수입니다. reduce 메서드는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

initialValue

U

initialValue를 지정하면 누적을 시작하는 초기 값으로 사용됩니다. 콜백fn 함수에 대한 첫 번째 호출은 배열 값 대신 인수로 이 값을 제공합니다.

반환

U

reduceRight((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache)

배열의 모든 요소에 대해 지정된 콜백 함수를 내림차순으로 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

function reduceRight(callbackfn: (previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache)

매개 변수

callbackfn

(previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache

최대 4개의 인수를 허용하는 함수입니다. reduceRight 메서드는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

반환

reduceRight((previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache, Cache)

function reduceRight(callbackfn: (previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache, initialValue: Cache)

매개 변수

callbackfn

(previousValue: Cache, currentValue: Cache, currentIndex: number, array: Cache[]) => Cache

initialValue
Cache

반환

reduceRight<U>((previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U, U)

배열의 모든 요소에 대해 지정된 콜백 함수를 내림차순으로 호출합니다. 콜백 함수의 반환 값은 누적된 결과이며 콜백 함수에 대한 다음 호출에서 인수로 제공됩니다.

function reduceRight<U>(callbackfn: (previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U, initialValue: U)

매개 변수

callbackfn

(previousValue: U, currentValue: Cache, currentIndex: number, array: Cache[]) => U

최대 4개의 인수를 허용하는 함수입니다. reduceRight 메서드는 배열의 각 요소에 대해 콜백fn 함수를 한 번 호출합니다.

initialValue

U

initialValue를 지정하면 누적을 시작하는 초기 값으로 사용됩니다. 콜백fn 함수에 대한 첫 번째 호출은 배열 값 대신 인수로 이 값을 제공합니다.

반환

U

reverse()

배열의 요소를 반대로 바뀝니다.

function reverse()

반환

Cache[]

shift()

배열에서 첫 번째 요소를 제거하고 반환합니다.

function shift()

반환

Cache | undefined

slice(undefined | number, undefined | number)

배열의 섹션을 반환합니다.

function slice(start?: undefined | number, end?: undefined | number)

매개 변수

start

undefined | number

배열의 지정된 부분의 시작 부분입니다.

end

undefined | number

배열의 지정된 부분 끝입니다.

반환

Cache[]

some((value: Cache, index: number, array: Cache[]) => unknown, any)

지정된 콜백 함수가 배열의 요소에 대해 true를 반환하는지 여부를 결정합니다.

function some(callbackfn: (value: Cache, index: number, array: Cache[]) => unknown, thisArg?: any)

매개 변수

callbackfn

(value: Cache, index: number, array: Cache[]) => unknown

최대 3개의 인수를 허용하는 함수입니다. 일부 메서드는 callbackfn이 true를 반환하거나 배열의 끝까지 array1의 각 요소에 대해 콜백fn 함수를 호출합니다.

thisArg

any

이 키워드가 callbackfn 함수에서 참조할 수 있는 개체입니다. thisArg를 생략하면 정의되지 않은 값이 이 값으로 사용됩니다.

반환

boolean

sort(undefined | (a: Cache, b: Cache) => number)

배열을 정렬합니다.

function sort(compareFn?: undefined | (a: Cache, b: Cache) => number)

매개 변수

compareFn

undefined | (a: Cache, b: Cache) => number

요소의 순서를 결정하는 데 사용되는 함수의 이름입니다. 생략하면 요소가 ASCII 문자 순서로 오름차순으로 정렬됩니다.

반환

this

splice(number, number, Cache[])

배열에서 요소를 제거하고 필요한 경우 해당 위치에 새 요소를 삽입하고 삭제된 요소를 반환합니다.

function splice(start: number, deleteCount: number, items: Cache[])

매개 변수

start

number

요소 제거를 시작할 배열의 0부터 시작하는 위치입니다.

deleteCount

number

제거할 요소의 수입니다.

items

Cache[]

삭제된 요소 대신 배열에 삽입할 요소입니다.

반환

Cache[]

splice(number, undefined | number)

배열에서 요소를 제거하고 필요한 경우 해당 위치에 새 요소를 삽입하고 삭제된 요소를 반환합니다.

function splice(start: number, deleteCount?: undefined | number)

매개 변수

start

number

요소 제거를 시작할 배열의 0부터 시작하는 위치입니다.

deleteCount

undefined | number

제거할 요소의 수입니다.

반환

Cache[]

toLocaleString()

배열의 문자열 표현을 반환합니다. 요소는 toLocalString 메서드를 사용하여 문자열로 변환됩니다.

function toLocaleString()

반환

string

toString()

배열의 문자열 표현을 반환합니다.

function toString()

반환

string

unshift(Cache[])

배열의 시작 부분에 새 요소를 삽입합니다.

function unshift(items: Cache[])

매개 변수

items

Cache[]

배열의 시작 부분에 삽입할 요소입니다.

반환

number

values()

배열에서 반복 가능한 값을 반환합니다.

function values()

반환

IterableIterator<Cache>