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

x/rambda/index.d.ts>endsWith

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

When iterable is a string, then it behaves as String.prototype.endsWith. When iterable is a list, then it uses R.equals to determine if the target list ends in the same way as the given target.

Type Parameters

T extends string

Parameters

question: T
str: string

Returns

boolean

Type Parameters

T extends string

Parameters

question: T

Returns

(str: string) => boolean

Parameters

question: T[]
list: T[]

Returns

boolean

Parameters

question: T[]

Returns

(list: T[]) => boolean