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

x/rambda/mod.ts>includes

Faster and smaller alternative to Ramda
Go to Latest
function includes
import { includes } from "https://deno.land/x/rambda@9.2.1/mod.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: T[]

Returns

boolean

Parameters

valueToFind: T

Returns

(input: T[]) => boolean