UNPKG

@stdlib/array

Version:
23 lines (16 loc) 311 B
{{alias}}( arr ) Returns the last element of an array-like object. Parameters ---------- arr: ArrayLikeObject Input array. Returns ------- out: any Last element. Examples -------- > var out = {{alias}}( [ 1, 2, 3 ] ) 3 See Also --------