Skip to main content
Module

x/rambda/findLast-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {findLast} from 'rambda'
const list = [1, 2, 3]
describe('R.findLast', () => { it('happy', () => { const predicate = (x: number) => x > 2 const result = findLast(predicate, list) result // $ExpectType number | undefined }) it('curried', () => { const predicate = (x: number) => x > 2 const result = findLast(predicate)(list) result // $ExpectType number | undefined })})