Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/immutable.d.ts>includes

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

If input is string, then this method work as native String.includes.

If input is array, then R.equals is used to define if valueToFind belongs to the list.

Type Parameters

T extends string

Parameters

valueToFind: T
input: string

Returns

boolean

Type Parameters

T extends string

Parameters

valueToFind: T

Returns

(input: string) => boolean

Parameters

valueToFind: T
input: readonly T[]

Returns

boolean

Parameters

valueToFind: T

Returns

(input: readonly T[]) => boolean