English
Appearance
Retrieves the element at a specified index in an array, supporting negative indices.
array
import { at } from 'rattail' at([1, 2, 3], 0) // return 1 at([1, 2, 3], -1) // return 3
arr
Array
index
number
any