Skip to main content
Module

x/rambda/last-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {last} from 'rambda'
describe('R.last', () => { it('string', () => { const result = last('foo') result // $ExpectType string })
it('array', () => { const result = last([1, 2, 3]) result // $ExpectType number })
it('empty array', () => { const result = last([]) result // $ExpectType undefined })})