Documentation
Preparing search index...
object/array
hasDuplicate
Function hasDuplicate
hasDuplicate
<
T
>
(
arr
:
T
[]
)
:
boolean
判断数组中是否有重复元素
如果有,返回 true
Type Parameters
T
Parameters
arr
:
T
[]
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
判断数组中是否有重复元素