Skip to main content
Module

x/rambda/lastIndexOf-spec.ts

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