Skip to main content
Module

x/rambda/immutable.d.ts>includes

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

Parameters

valueToFind: string
input: readonly string[] | string

Returns

boolean

Parameters

valueToFind: string

Returns

(input: readonly string[] | string) => boolean

Parameters

valueToFind: T
input: readonly T[]

Returns

boolean

Parameters

valueToFind: T

Returns

(input: readonly T[]) => boolean