Skip to main content
Module

x/denofun/includes.ts>default

Small utility library containing functions, monads and other fun stuff.
Latest
function default
import { default } from "https://deno.land/x/denofun@v0.2.0/includes.ts";

includes checks if an element exists in a string or array (including objects)

Parameters

x: string

element to search for

xs: string | string[]

list of elements or a string to be search

Returns

boolean

true if found, false if not