Preparing search index...
The search index is not available
@pleisto/active-support
@pleisto/active-support
partition
Function partition
partition
<
T
>
(
list
,
condition
)
:
[
T
[]
,
T
[]
]
Split an array into two array based on a true/false condition function
Type Parameters
T
Parameters
list
:
readonly
T
[]
condition
:
(
(
item
)
=>
boolean
)
(
item
)
:
boolean
Parameters
item
:
T
Returns
boolean
Returns
[
T
[]
,
T
[]
]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@pleisto/active-support
Loading...
Split an array into two array based on a true/false condition function