Preparing search index...
The search index is not available
@devops-web/utils - v1.0.9
@devops-web/utils
ArrayUtils
includes
Function includes
includes
<
T
>
(
array
,
value
,
toKey
?
)
:
boolean
判断一个数组中是否包含某个值
Type Parameters
T
Parameters
array
:
readonly
T
[]
要检查的数组
value
:
T
要检查的值
Optional
toKey
:
ToKey
<
T
>
可选的自定义键函数,用于比较数组元素和值
Returns
boolean
如果数组中包含该值,则返回true;否则返回false
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@devops-web/utils - v1.0.9
Loading...
判断一个数组中是否包含某个值