Skip to content
On this page

last

Return the last element of the given array.

Example

last([1, 2, 3]) // => 3

Playground

const { last } = require('rhodash')
last([1, 2, 3]) // => 3