x/rambda/source/nth-spec.ts
1234567891011121314151617import {nth} from 'rambda'const list = [1, 2, 3]describe('R.nth', () => { it('happy', () => { const result = nth(4, list) result // $ExpectType number | undefined }) it('curried', () => { const result = nth(1)(list) result // $ExpectType number | undefined })})