Array
Get the last item from a list
Given an array of items return the last item or a default value if no items exists.
import { last } from 'radash'
const fish = ['marlin', 'bass', 'trout']
const lastFish = last(fish) // => 'trout'
const lastItem = last([], 'bass') // => 'bass'