Preparing search index...
The search index is not available
@3r/tool
@3r/tool
contrast
Function contrast
contrast
<
T
>
(
arr
,
func
)
:
boolean
通过条件一一对比 例: contrast([1,2,3],(curr,next)=>curr+next==3) => true
Type Parameters
T
Parameters
arr
:
T
[]
func
:
(
(
curr
,
next
)
=>
any
)
(
curr
,
next
)
:
any
Parameters
curr
:
T
next
:
T
Returns
any
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@3r/tool
Loading...
通过条件一一对比 例: contrast([1,2,3],(curr,next)=>curr+next==3) => true