Skip to main content
Module

x/rambda/findIndex-spec.ts

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