Preparing search index...
The search index is not available
Vinyl
Vinyl
@amzn/vinyl-util
getElementOrDefault
Function getElementOrDefault
get
Element
Or
Default
<
T
,
V
>
(
array
,
index
,
defaultValue
)
:
T
|
V
Gets the element in the ArrayLike at the given index, or returns the provided default value.
Type Parameters
T
V
Parameters
array
:
ArrayLike
<
T
>
index
:
number
defaultValue
:
V
Returns
T
|
V
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Vinyl
Loading...
Gets the element in the ArrayLike at the given index, or returns the provided default value.