Skip to main content
Module

x/rambda/immutable.d.ts>indexOf

Faster and smaller alternative to Ramda
Go to Latest
function indexOf
import { indexOf } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

It returns the index of the first element of list equals to valueToFind.

If there is no such element, it returns -1.

Parameters

valueToFind: T
list: readonly T[]

Returns

number

Parameters

valueToFind: T

Returns

(list: readonly T[]) => number