Skip to main content
Module

x/rambda/indexOf.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { indexOf } from './indexOf'
test('happy', () => { expect(indexOf(3, [ 1, 2, 3, 4 ])).toEqual(2)
expect(indexOf(10)([ 1, 2, 3, 4 ])).toEqual(-1)})