Produces a function that returns the element at a specified index in a sequence or a default value if out of bounds.
The optional default value to use if the element is not found.
A function that when passed a sequence of elements selects the specific element.
Produces a function that returns the element at a specified index in a sequence or undefined if out of bounds.
undefined
Produces a function that returns the element at a specified index in a sequence or the default value if out of bounds.
Produces a function that returns the element at a specified index in a sequence or a default value if out of bounds.
Param: index
Param: defaultValue
The optional default value to use if the element is not found.
Returns
A function that when passed a sequence of elements selects the specific element.