concat((Artifact
Tag
Properties | Concat
Array<Artifact
Tag
Properties>)[])
合并两个或多个数组。
此方法返回新数组,而不修改任何现有数组。
concat(Concat
Array<Artifact
Tag
Properties>[])
合并两个或多个数组。
此方法返回新数组,而不修改任何现有数组。
copy
Within(number, number, number)
复制由 start 和 end 到从位置目标开始的相同数组所标识的数组的一部分后返回此对象
entries()
返回数组中每个条目的键、值对的可迭代值
every((value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => unknown, any)
确定数组的所有成员是否都满足指定的测试。
every<S>((value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => value, any)
确定数组的所有成员是否都满足指定的测试。
fill(Artifact
Tag
Properties, number, number)
将所有数组元素从
start
更改为
end
索引,并
value
返回修改后的数组
filter((value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => unknown, any)
返回数组中满足回调函数中指定的条件的元素。
filter<S>((value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => value, any)
返回数组中满足回调函数中指定的条件的元素。
find((value: Artifact
Tag
Properties, index: number, obj: Artifact
Tag
Properties[]) => unknown, any)
find<S>((this: void, value: Artifact
Tag
Properties, index: number, obj: Artifact
Tag
Properties[]) => value, any)
返回数组中谓词为 true 且未定义的第一个元素的值。
find
Index((value: Artifact
Tag
Properties, index: number, obj: Artifact
Tag
Properties[]) => unknown, any)
返回数组中谓词为 true 的第一个元素的索引,否则返回 -1。
flat<A, D>(A, D)
返回一个新数组,该数组的所有子数组元素都以递归方式连接到该数组,并一直连接到指定的深度。
flat
Map<U, This>((this: This, value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => U | (readonly U[]), This)
对数组的每个元素调用定义的回调函数。 然后,将结果平展为新数组。
这与后接深度为 1 的平面图相同。
for
Each((value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => void, any)
为数组中的每个元素执行指定操作。
includes(Artifact
Tag
Properties, number)
确定数组是包含特定元素,并根据需要返回 true 还是 false。
index
Of(Artifact
Tag
Properties, number)
返回数组中某个值的第一个匹配项的索引;如果该值不存在,则返回 -1。
join(string)
将数组的所有元素添加到字符串中,用指定的分隔符字符串分隔。
keys()
返回数组中键的可迭代项
last
Index
Of(Artifact
Tag
Properties, number)
返回数组中指定值最后一个匹配项的索引;如果不存在,则返回 -1。
map<U>((value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => U, any)
对数组的每个元素调用定义的回调函数并返回包含结果的数组。
pop()
从数组中移除最后一个元素并将该元素返回。
如果数组为空,则返回 undefined 且不修改该数组。
push(Artifact
Tag
Properties[])
将新元素追加到数组的末尾,并返回数组的新长度。
reduce((previous
Value: Artifact
Tag
Properties, current
Value: Artifact
Tag
Properties, current
Index: number, array: Artifact
Tag
Properties[]) => Artifact
Tag
Properties)
为数组中的所有元素调用指定的回调函数。 回调函数的返回值是累积的结果,并且作为对回调函数的下一个调用中的参数提供。
reduce((previous
Value: Artifact
Tag
Properties, current
Value: Artifact
Tag
Properties, current
Index: number, array: Artifact
Tag
Properties[]) => Artifact
Tag
Properties, Artifact
Tag
Properties)
reduce<U>((previous
Value: U, current
Value: Artifact
Tag
Properties, current
Index: number, array: Artifact
Tag
Properties[]) => U, U)
为数组中的所有元素调用指定的回调函数。 回调函数的返回值是累积的结果,并且作为对回调函数的下一个调用中的参数提供。
reduce
Right((previous
Value: Artifact
Tag
Properties, current
Value: Artifact
Tag
Properties, current
Index: number, array: Artifact
Tag
Properties[]) => Artifact
Tag
Properties)
按降序为数组中的所有元素调用指定的回调函数。 回调函数的返回值是累积的结果,并且作为对回调函数的下一个调用中的参数提供。
reduce
Right((previous
Value: Artifact
Tag
Properties, current
Value: Artifact
Tag
Properties, current
Index: number, array: Artifact
Tag
Properties[]) => Artifact
Tag
Properties, Artifact
Tag
Properties)
reduce
Right<U>((previous
Value: U, current
Value: Artifact
Tag
Properties, current
Index: number, array: Artifact
Tag
Properties[]) => U, U)
按降序为数组中的所有元素调用指定的回调函数。 回调函数的返回值是累积的结果,并且作为对回调函数的下一个调用中的参数提供。
reverse()
就地反转数组中的元素。
此方法改变数组并返回对同一数组的引用。
shift()
从数组中移除第一个元素并将返回该元素。
如果数组为空,则返回 undefined 且不修改该数组。
slice(number, number)
返回数组的节的副本。
对于 start 和 end,负索引可用于指示与数组末尾的偏移量。
例如,-2 是指数组的第二个到最后一个元素。
some((value: Artifact
Tag
Properties, index: number, array: Artifact
Tag
Properties[]) => unknown, any)
确定指定的回调函数是否为数组的任何元素返回 true。
sort((a: Artifact
Tag
Properties, b: Artifact
Tag
Properties) => number)
就地对数组进行排序。
此方法改变数组并返回对同一数组的引用。
splice(number, number)
从一个数组中移除元素,如有必要,在所移除元素的位置上插入新元素,并返回所移除的元素。
splice(number, number, Artifact
Tag
Properties[])
从一个数组中移除元素,如有必要,在所移除元素的位置上插入新元素,并返回所移除的元素。
to
Locale
String()
返回数组的字符串表示形式。 元素使用其 toLocaleString 方法转换为字符串。
to
String()
返回数组的字符串表示形式。
unshift(Artifact
Tag
Properties[])
在数组的开头插入新元素,并返回数组的新长度。
values()
返回数组中值的可迭代值
[iterator]()
[unscopables]()
返回一个 对象,其属性在“with”语句中使用时将不存在时其属性的值为“true”。
function concat(items: (ArtifactTagProperties | ConcatArray<ArtifactTagProperties>)[]): ArtifactTagProperties[]
items
(
ArtifactTagProperties
| ConcatArray<
ArtifactTagProperties
>)[]
要添加到数组末尾的其他数组和/或项。
ArtifactTagProperties
[]
function every(predicate: (value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => unknown, thisArg?: any): boolean
predicate
(value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => unknown
最多可以接受三个参数的函数。 每个方法调用数组中每个元素的谓词函数,直到谓词返回一个可强制为布尔值 false 的值,或直到数组的末尾。
thisArg
此关键字 (keyword) 可以在谓词函数中引用的 对象。
如果省略 thisArg,则将 undefined 用作此值。
boolean
function every<S>(predicate: (value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => value, thisArg?: any): this
predicate
(value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => value
最多可以接受三个参数的函数。 每个方法调用数组中每个元素的谓词函数,直到谓词返回一个可强制为布尔值 false 的值,或直到数组的末尾。
thisArg
此关键字 (keyword) 可以在谓词函数中引用的 对象。
如果省略 thisArg,则将 undefined 用作此值。
function fill(value: ArtifactTagProperties, start?: number, end?: number): TagPageResponse
value
ArtifactTagProperties
用于填充数组节的值
start
number
索引以开始填充数组。 如果 start 为负数,则被视为 length+start,其中 length 是数组的长度。
number
索引以停止填充数组。 如果 end 为负值,则将其视为 length+end。
TagPageResponse
function filter(predicate: (value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => unknown, thisArg?: any): ArtifactTagProperties[]
predicate
(value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => unknown
最多可以接受三个参数的函数。 filter 方法为数组中的每个元素调用谓词函数一次。
thisArg
此关键字 (keyword) 可以在谓词函数中引用的 对象。 如果省略 thisArg,则将 undefined 用作此值。
ArtifactTagProperties
[]
function filter<S>(predicate: (value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => value, thisArg?: any): S[]
predicate
(value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => value
最多可以接受三个参数的函数。 filter 方法为数组中的每个元素调用谓词函数一次。
thisArg
此关键字 (keyword) 可以在谓词函数中引用的 对象。 如果省略 thisArg,则将 undefined 用作此值。
function find(predicate: (value: ArtifactTagProperties, index: number, obj: ArtifactTagProperties[]) => unknown, thisArg?: any): undefined | ArtifactTagProperties
predicate
(value: ArtifactTagProperties, index: number, obj: ArtifactTagProperties[]) => unknown
function find<S>(predicate: (this: void, value: ArtifactTagProperties, index: number, obj: ArtifactTagProperties[]) => value, thisArg?: any): undefined | S
predicate
(this: void, value: ArtifactTagProperties, index: number, obj: ArtifactTagProperties[]) => value
find 按升序为数组的每个元素调用一次谓词,直到找到谓词返回 true 的谓词。 如果找到此类元素,find 将立即返回该元素值。 否则,find 返回未定义。
thisArg
如果提供,则它将用作谓词每次调用的此值。 如果未提供,则改用 undefined。
undefined | S
function findIndex(predicate: (value: ArtifactTagProperties, index: number, obj: ArtifactTagProperties[]) => unknown, thisArg?: any): number
predicate
(value: ArtifactTagProperties, index: number, obj: ArtifactTagProperties[]) => unknown
find 按升序为数组的每个元素调用一次谓词,直到找到谓词返回 true 的谓词。 如果找到此类元素,findIndex 将立即返回该元素索引。 否则,findIndex 返回 -1。
thisArg
如果提供,则它将用作谓词每次调用的此值。 如果未提供,则改用 undefined。
number
function flatMap<U, This>(callback: (this: This, value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => U | (readonly U[]), thisArg?: This): U[]
callback
(this: This, value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => U | (readonly U[])
最多可以接受三个参数的函数。 flatMap 方法为数组中的每个元素调用回调函数一次。
thisArg
此关键字 (keyword) 可以在回调函数中引用的 对象。 如果省略 thisArg,则将 undefined 用作此值。
function forEach(callbackfn: (value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => void, thisArg?: any)
callbackfn
(value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => void
最多可以接受三个参数的函数。 forEach 为数组中的每个元素调用一次 callbackfn 函数。
thisArg
此关键字 (keyword) 可以在 callbackfn 函数中引用的对象。 如果省略 thisArg,则 undefined 用作此值。
function map<U>(callbackfn: (value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => U, thisArg?: any): U[]
callbackfn
(value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => U
最多可以接受三个参数的函数。 map 方法为数组中的每个元素调用一次 callbackfn 函数。
thisArg
此关键字 (keyword) 可以在 callbackfn 函数中引用的对象。 如果省略 thisArg,则 undefined 用作此值。
function reduce(callbackfn: (previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties): ArtifactTagProperties
callbackfn
(previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties
一个最多接受四个参数的函数。 reduce 方法为数组中的每个元素调用一次 callbackfn 函数。
ArtifactTagProperties
function reduce(callbackfn: (previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties, initialValue: ArtifactTagProperties): ArtifactTagProperties
callbackfn
(previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties
function reduce<U>(callbackfn: (previousValue: U, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => U, initialValue: U): U
callbackfn
(previousValue: U, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => U
一个最多接受四个参数的函数。 reduce 方法为数组中的每个元素调用一次 callbackfn 函数。
initialValue
如果指定了 initialValue,则将其用作开始累积的初始值。 对 callbackfn 函数的第一次调用提供此值作为参数而不是数组值。
function reduceRight(callbackfn: (previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties): ArtifactTagProperties
callbackfn
(previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties
一个最多接受四个参数的函数。 reduceRight 方法为数组中的每个元素调用一次 callbackfn 函数。
ArtifactTagProperties
function reduceRight(callbackfn: (previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties, initialValue: ArtifactTagProperties): ArtifactTagProperties
callbackfn
(previousValue: ArtifactTagProperties, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => ArtifactTagProperties
function reduceRight<U>(callbackfn: (previousValue: U, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => U, initialValue: U): U
callbackfn
(previousValue: U, currentValue: ArtifactTagProperties, currentIndex: number, array: ArtifactTagProperties[]) => U
一个最多接受四个参数的函数。 reduceRight 方法为数组中的每个元素调用一次 callbackfn 函数。
initialValue
如果指定了 initialValue,则将其用作开始累积的初始值。 对 callbackfn 函数的第一次调用提供此值作为参数而不是数组值。
function some(predicate: (value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => unknown, thisArg?: any): boolean
predicate
(value: ArtifactTagProperties, index: number, array: ArtifactTagProperties[]) => unknown
最多可以接受三个参数的函数。 some 方法为数组中的每个元素调用谓词函数,直到谓词返回一个可强制转换为布尔值 true 的值,或直到数组的末尾。
thisArg
此关键字 (keyword) 可以在谓词函数中引用的对象。
如果省略 thisArg,则 undefined 用作此值。
boolean
function sort(compareFn?: (a: ArtifactTagProperties, b: ArtifactTagProperties) => number): TagPageResponse
compareFn
(a: ArtifactTagProperties, b: ArtifactTagProperties) => number
用于确定元素顺序的函数。 如果第一个参数小于第二个参数,则应返回负值;如果相等,则返回零;否则返回正值。 如果省略,则元素按升序 ASCII 字符顺序排序。
[11,2,22,1].sort((a, b) => a - b)
TagPageResponse
function splice(start: number, deleteCount: number, items: ArtifactTagProperties[]): ArtifactTagProperties[]
start
number
数组中从零开始的位置,从该位置开始删除元素。
deleteCount
number
要移除的元素数。
items
ArtifactTagProperties[]
要插入到数组中以代替已删除元素的元素。
ArtifactTagProperties[]
包含已删除的元素的数组。
继承自 Array.splice
toLocaleString()
function [unscopables](): { copyWithin: boolean, entries: boolean, fill: boolean, find: boolean, findIndex: boolean, keys: boolean, values: boolean }
{ copyWithin: boolean, entries: boolean, fill: boolean, find: boolean, findIndex: boolean, keys: boolean, values: boolean }