Selects an element from a list of provided items based on the specified index.
The type of items in the list.
The index of the item to select.
Rest
The list of items from which to select.
const result = selectFromList(2, "one", "two", "three");console.log(result); // Output: "three" Copy
const result = selectFromList(2, "one", "two", "three");console.log(result); // Output: "three"
Generated using TypeDoc
Selects an element from a list of provided items based on the specified index.