Module

x/rambda/rambda.js>includes

Faster and smaller alternative to Ramda
Latest
function includes
import { includes } from "https://dotland.deno.dev/x/rambda@9.4.1/rambda.js";

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