@pleisto/active-support
Preparing search index...
series
Variable series
Const
series
:
<
T
>
(
items
:
T
[]
,
toKey
?:
(
item
:
T
)
=>
string
|
symbol
,
)
=>
{
first
:
()
=>
T
;
last
:
()
=>
T
;
max
:
(
a
:
T
,
b
:
T
)
=>
T
;
min
:
(
a
:
T
,
b
:
T
)
=>
T
;
next
:
(
current
:
T
,
defaultValue
?:
T
)
=>
T
;
previous
:
(
current
:
T
,
defaultValue
?:
T
)
=>
T
;
spin
:
(
current
:
T
,
num
:
number
)
=>
T
;
}
Creates a series object around a list of values that should be treated with order.
Type declaration
<
T
>
(
items
:
T
[]
,
toKey
?:
(
item
:
T
)
=>
string
|
symbol
,
)
:
{
first
:
()
=>
T
;
last
:
()
=>
T
;
max
:
(
a
:
T
,
b
:
T
)
=>
T
;
min
:
(
a
:
T
,
b
:
T
)
=>
T
;
next
:
(
current
:
T
,
defaultValue
?:
T
)
=>
T
;
previous
:
(
current
:
T
,
defaultValue
?:
T
)
=>
T
;
spin
:
(
current
:
T
,
num
:
number
)
=>
T
;
}
Type Parameters
T
Parameters
items
:
T
[]
Optional
toKey
:
(
item
:
T
)
=>
string
|
symbol
Returns
{
first
:
()
=>
T
;
last
:
()
=>
T
;
max
:
(
a
:
T
,
b
:
T
)
=>
T
;
min
:
(
a
:
T
,
b
:
T
)
=>
T
;
next
:
(
current
:
T
,
defaultValue
?:
T
)
=>
T
;
previous
:
(
current
:
T
,
defaultValue
?:
T
)
=>
T
;
spin
:
(
current
:
T
,
num
:
number
)
=>
T
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@pleisto/active-support
Loading...
Creates a series object around a list of values that should be treated with order.